start consuming
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-08-06 17:33:57 +02:00
parent 858c95220e
commit caf9e1c0f3
2 changed files with 20 additions and 4 deletions

View File

@ -49,6 +49,7 @@ def setup_rabbit() -> None:
exclusive=True).method.queue
channel.queue_bind(exchange=config.RABBIT_EXCHANGE, queue=queue)
channel.basic_consume(queue=queue, on_message_callback=on_message, auto_ack=True)
channel.start_consuming()
def on_message(channel, method_frame, header_frame, body):