소스 검색

Use Connection.get_heartbeat_interval()

Ask Solem 11 년 전
부모
커밋
fa7ad41fa4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      celery/worker/loops.py

+ 1 - 1
celery/worker/loops.py

@@ -29,7 +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
+    heartbeat = connection.get_heartbeat_interval()  # negotiated
     hub_add, hub_remove = hub.add, hub.remove
 
     on_task_received = obj.create_task_handler()