Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, adding result backend…
Browse files Browse the repository at this point in the history
… retries
  • Loading branch information
rkorytkowski committed Aug 22, 2023
1 parent a72ec00 commit 1e145a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
}

CELERY_BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 259200, 'max_retries': 20} # 72 hours, the longest ETA
CELERY_RESULT_BACKEND_ALWAYS_RETRY = True
CELERY_RESULT_BACKEND_MAX_SLEEP_BETWEEN_RETRIES_MS = 10000
CELERY_RESULT_BACKEND_BASE_SLEEP_BETWEEN_RETRIES_MS = 100
CELERY_RESULT_BACKEND_MAX_RETRIES = 10

CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS = {
'redis_socket_connect_timeout': 5,
'redis_socket_timeout': 5,
Expand Down

0 comments on commit 1e145a0

Please sign in to comment.