Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, use merge
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Aug 24, 2023
1 parent f8d3d76 commit 4e3fbd6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,16 +388,14 @@
CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS = {
'retry_policy': {
'timeout': 5.0,
**RETRY_POLICY
}
} | RETRY_POLICY
}
CELERY_RESULT_EXTENDED = True
CELERY_RESULT_EXPIRES = 259200 # 72 hours

CELERY_BROKER_TRANSPORT_OPTIONS = {
'visibility_timeout': 259200, # 72 hours, the longest ETA
**RETRY_POLICY
}
} | RETRY_POLICY

if REDIS_SENTINELS:
CELERY_RESULT_BACKEND = ''
Expand All @@ -421,8 +419,7 @@
CELERY_TASK_PUBLISH_RETRY = True
CELERY_TASK_PUBLISH_RETRY_POLICY = {
'retry_errors': None,
**RETRY_POLICY
}
} | RETRY_POLICY

CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_ONCE = {
Expand Down

0 comments on commit 4e3fbd6

Please sign in to comment.