Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, move socket_timeout_
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Aug 25, 2023
1 parent cf3924b commit 55ceea9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,6 @@
'interval_start': 0,
'interval_step': 1,
'interval_max': 10,
'socket_timeout': 5.0,
'socket_connect_timeout': 5.0,
'timeout': 5.0
}

Expand Down Expand Up @@ -392,13 +390,18 @@
CELERY_RESULT_BACKEND_BASE_SLEEP_BETWEEN_RETRIES_MS = 100
CELERY_RESULT_BACKEND_MAX_RETRIES = 10
CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS = {
'retry_policy': RETRY_POLICY
'retry_policy': {
'socket_timeout': 5.0,
'socket_connect_timeout': 5.0,
} | RETRY_POLICY
}
CELERY_RESULT_EXTENDED = True
CELERY_RESULT_EXPIRES = 259200 # 72 hours

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

if REDIS_SENTINELS:
Expand Down

0 comments on commit 55ceea9

Please sign in to comment.