use AMQP heartbeat feature
This commit is contained in:
parent
5b3c0cb1c8
commit
8a0f474075
1 changed files with 3 additions and 2 deletions
|
@ -49,7 +49,8 @@ class PypoMessageHandler(Thread):
|
||||||
with Connection(self.config["host"], \
|
with Connection(self.config["host"], \
|
||||||
self.config["user"], \
|
self.config["user"], \
|
||||||
self.config["password"], \
|
self.config["password"], \
|
||||||
self.config["vhost"]) as connection:
|
self.config["vhost"], \
|
||||||
|
hearbeat = 4) as connection:
|
||||||
rabbit = RabbitConsumer(connection, [schedule_queue], self)
|
rabbit = RabbitConsumer(connection, [schedule_queue], self)
|
||||||
rabbit.run()
|
rabbit.run()
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue