Skip to content

Commit

Permalink
OpenConceptLab/ocl_issues#927 Redis clustering, adjusting task publis…
Browse files Browse the repository at this point in the history
…h retries
  • Loading branch information
rkorytkowski committed Aug 22, 2023
1 parent 57629d0 commit a72ec00
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,11 +381,20 @@
CELERY_BROKER_CONNECTION_TIMEOUT = 5.0
CELERY_BROKER_CONNECTION_RETRY = True
CELERY_BROKER_CONNECTION_RETRY_ON_STARTUP = True
CELERY_BROKER_CONNECTION_MAX_RETRIES = 20
CELERY_BROKER_CONNECTION_MAX_RETRIES = 200
CELERY_BROKER_CHANNEL_ERROR_RETRY = True
CELERY_BROKER_HEARTBEAT = 20
CELERY_BROKER_HEARTBEAT_CHECKRATE = 2

CELERY_TASK_PUBLISH_RETRY = True
CELERY_TASK_PUBLISH_RETRY_POLICY = {
'max_retries': 10,
'interval_start': 0,
'interval_step': 1,
'interval_max': 10,
'retry_errors': None,
}

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

0 comments on commit a72ec00

Please sign in to comment.