Skip to content

Commit 3ef84b7

Browse files
committed
Sets EVENT_QUEUE_TTL=5 and EVENT_QUEUE_EXPIRES=60 by default
1 parent 740f017 commit 3ef84b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

celery/app/defaults.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ def __repr__(self):
119119
'ENABLE_UTC': Option(True, type='bool'),
120120
'ENABLE_REMOTE_CONTROL': Option(True, type='bool'),
121121
'EVENT_SERIALIZER': Option('json'),
122-
'EVENT_QUEUE_EXPIRES': Option(None, type='float'),
123-
'EVENT_QUEUE_TTL': Option(None, type='float'),
122+
'EVENT_QUEUE_EXPIRES': Option(60.0, type='float'),
123+
'EVENT_QUEUE_TTL': Option(5.0, type='float'),
124124
'IMPORTS': Option((), type='tuple'),
125125
'INCLUDE': Option((), type='tuple'),
126126
'IGNORE_RESULT': Option(False, type='bool'),

docs/configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1618,7 +1618,7 @@ CELERY_EVENT_QUEUE_EXPIRES
16181618
:transports supported: ``amqp``
16191619

16201620

1621-
Expiry time in seconds (int/float) for when a monitor clients
1621+
Expiry time in seconds (int/float) for when after a monitor clients
16221622
event queue will be deleted (``x-expires``).
16231623

16241624
Default is never, relying on the queue autodelete setting.

0 commit comments

Comments
 (0)