Skip to content

Commit

Permalink
Revert "celery result expires after 120 hours"
Browse files Browse the repository at this point in the history
This reverts commit 721818e.
  • Loading branch information
snyaggarwal committed Jun 13, 2021
1 parent 2485b75 commit b417fd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/settings.py
Expand Up @@ -311,11 +311,11 @@
'timeout': 10.0
}
}
CELERY_RESULT_EXPIRES = 120*60*60 # 120 hours
CELERY_RESULT_EXPIRES = 360000 # 100 hours
CELERY_BROKER_URL = CELERY_RESULT_BACKEND
CELERY_BROKER_POOL_LIMIT = 50 # should be adjusted considering the number of threads
CELERY_BROKER_CONNECTION_TIMEOUT = 10.0
CELERY_BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': CELERY_RESULT_EXPIRES}
CELERY_BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': CELERY_RESULT_EXPIRES} # 100 hours, the lon
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_ONCE = {
'backend': 'celery_once.backends.Redis',
Expand Down

0 comments on commit b417fd5

Please sign in to comment.