Browse Source

Config: broker_heartbeat set to 120 by default.

Ask Solem 8 years ago
parent
commit
83d1803664
2 changed files with 5 additions and 2 deletions
  1. 1 1
      celery/app/defaults.py
  2. 4 1
      docs/userguide/configuration.rst

+ 1 - 1
celery/app/defaults.py

@@ -100,7 +100,7 @@ NAMESPACES = Namespace(
         connection_retry=Option(True, type='bool'),
         connection_max_retries=Option(100, type='int'),
         failover_strategy=Option(None, type='string'),
-        heartbeat=Option(None, type='int'),
+        heartbeat=Option(120, type='int'),
         heartbeat_checkrate=Option(3.0, type='int'),
         login_method=Option(None, type='string'),
         pool_limit=Option(10, type='int'),

+ 4 - 1
docs/userguide/configuration.rst

@@ -1636,7 +1636,10 @@ Example::
 ~~~~~~~~~~~~~~~~~~~~
 :transports supported: ``pyamqp``
 
-Default: Disabled by default.
+Default: ``120.0`` (negotiated by server).
+
+Note: This value is only used by the worker, clients do not use
+a heartbeat at the moment.
 
 It's not always possible to detect connection loss in a timely
 manner using TCP/IP alone, so AMQP defines something called heartbeats