Changed routing key
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-08-18 16:06:14 +02:00
parent 9b328cf259
commit 94b1a77bdc
2 changed files with 2 additions and 2 deletions

View File

@ -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/")

View File

@ -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)