added ttl setting

This commit is contained in:
syed-awais-ali
2017-02-09 00:39:45 +05:00
parent 7d320f7ef8
commit 95c6edd187
4 changed files with 12 additions and 0 deletions

View File

@@ -65,6 +65,9 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
BROKER_HEARTBEAT = 10.0
BROKER_HEARTBEAT_CHECKRATE = 2
# Message expiry time in seconds, Default is 5 seconds
CELERY_EVENT_QUEUE_TTL = 10
# Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER = 1

View File

@@ -110,6 +110,9 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
BROKER_HEARTBEAT = 10.0
BROKER_HEARTBEAT_CHECKRATE = 2
# Message expiry time in seconds, Default is 5 seconds
CELERY_EVENT_QUEUE_TTL = 10
# Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER = 1

View File

@@ -74,6 +74,9 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
BROKER_HEARTBEAT = 10.0
BROKER_HEARTBEAT_CHECKRATE = 2
# Message expiry time in seconds, Default is 5 seconds
CELERY_EVENT_QUEUE_TTL = 10
# Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER = 1

View File

@@ -133,6 +133,9 @@ CELERY_RESULT_BACKEND = 'djcelery.backends.cache:CacheBackend'
BROKER_HEARTBEAT = 10.0
BROKER_HEARTBEAT_CHECKRATE = 2
# Message expiry time in seconds, Default is 5 seconds
CELERY_EVENT_QUEUE_TTL = 10
# Each worker should only fetch one message at a time
CELERYD_PREFETCH_MULTIPLIER = 1