浏览代码

forgot to commit

Ask Solem 11 年之前
父节点
当前提交
535377dec4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      celery/worker/loops.py

+ 1 - 0
celery/worker/loops.py

@@ -29,6 +29,7 @@ def asynloop(obj, connection, consumer, blueprint, hub, qos,
     readers, writers = hub.readers, hub.writers
     hbtick = connection.heartbeat_check
     errors = connection.connection_errors
+    heartbeat = connection.connection.heartbeat  # negotiated
     hub_add, hub_remove = hub.add, hub.remove
 
     on_task_received = obj.create_task_handler()