summaryrefslogtreecommitdiff
path: root/kombu/mixins.py
diff options
context:
space:
mode:
authorDustin J. Mitchell <dustin@mozilla.com>2014-01-08 15:06:45 -0500
committerDustin J. Mitchell <dustin@mozilla.com>2014-01-08 15:06:45 -0500
commited6788c5ad79e577547fd603442835a5abe605bc (patch)
treee08410ba892bd80bb0f5d0bb1563ce4943afd2fe /kombu/mixins.py
parentffa90945bf06ba8b9269b4a36019baad0ac57793 (diff)
downloadkombu-ed6788c5ad79e577547fd603442835a5abe605bc.tar.gz
Call `heartbeat_check` in `ConsumerMixin`
This also adjusts the docs to be a little less specific about the rate argument and a little more specific about how often the function should be called.
Diffstat (limited to 'kombu/mixins.py')
-rw-r--r--kombu/mixins.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kombu/mixins.py b/kombu/mixins.py
index 4db6a22b..8d962d05 100644
--- a/kombu/mixins.py
+++ b/kombu/mixins.py
@@ -188,6 +188,7 @@ class ConsumerMixin(object):
for i in limit and range(limit) or count():
if self.should_stop:
break
+ conn.heartbeat_check()
self.on_iteration()
try:
conn.drain_events(timeout=safety_interval)