This commit is contained in:
@ -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):
|
||||
|
Reference in New Issue
Block a user