mirror of https://github.com/celery/kombu.git
Improve example code
This commit is contained in:
parent
5f267314bf
commit
aceaa71956
|
@ -32,4 +32,7 @@ if __name__ == "__main__":
|
|||
setup_logging(loglevel="INFO")
|
||||
|
||||
with BrokerConnection("amqp://guest:guest@localhost:5672//") as conn:
|
||||
Worker(conn).run()
|
||||
try:
|
||||
Worker(conn).run()
|
||||
except KeyboardInterrupt:
|
||||
print("bye bye")
|
||||
|
|
Loading…
Reference in New Issue