This commit is contained in:
parent
9b328cf259
commit
94b1a77bdc
@ -6,7 +6,7 @@ import logging
|
|||||||
class Config:
|
class Config:
|
||||||
PIKA_URL = os.environ['PIKA_URL']
|
PIKA_URL = os.environ['PIKA_URL']
|
||||||
PIKA_OUTPUT_EXCHANGE = os.environ['PIKA_OUTPUT_EXCHANGE']
|
PIKA_OUTPUT_EXCHANGE = os.environ['PIKA_OUTPUT_EXCHANGE']
|
||||||
PIKA_INPUT_EXCHANGE = os.environ['PIKA_INPUT_EXCHANGE']
|
PIKA_INPUT_EXCHANGE = os.environ.get('PIKA_INPUT_EXCHANGE', 'sample-ready')
|
||||||
|
|
||||||
MODEL_INFO_URL = os.environ.get("MODEL_INFO_URL", "http://model-service/model/cnn/$default")
|
MODEL_INFO_URL = os.environ.get("MODEL_INFO_URL", "http://model-service/model/cnn/$default")
|
||||||
STORAGE_SERVICE_URL = os.environ.get("STORAGE_SERVICE_URL", "http://storage-service/")
|
STORAGE_SERVICE_URL = os.environ.get("STORAGE_SERVICE_URL", "http://storage-service/")
|
||||||
|
@ -95,7 +95,7 @@ def main():
|
|||||||
queue_declare_result = channel.queue_declare(queue='cnnqueue', exclusive=False)
|
queue_declare_result = channel.queue_declare(queue='cnnqueue', exclusive=False)
|
||||||
queue_name = queue_declare_result.method.queue
|
queue_name = queue_declare_result.method.queue
|
||||||
|
|
||||||
channel.queue_bind(exchange=Config.PIKA_INPUT_EXCHANGE, routing_key='feature', queue=queue_name)
|
channel.queue_bind(exchange=Config.PIKA_INPUT_EXCHANGE, routing_key='sample', queue=queue_name)
|
||||||
|
|
||||||
channel.basic_qos(prefetch_count=1)
|
channel.basic_qos(prefetch_count=1)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user