Log the act of sending a heartbeat (DEBUG level).

main
Vincent Driessen 12 years ago
parent e4d37332f0
commit e0866cdc6c

@ -343,6 +343,9 @@ class Worker(object):
return Queue.dequeue_any(self.queues, timeout, return Queue.dequeue_any(self.queues, timeout,
connection=self.connection) connection=self.connection)
except DequeueTimeout: except DequeueTimeout:
pass
self.log.debug('Sending heartbeat to prevent worker timeout.')
self.connection.expire(self.key, self.default_worker_ttl) self.connection.expire(self.key, self.default_worker_ttl)

Loading…
Cancel
Save