Skip to content

Commit

Permalink
Removed retry policy
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Nov 23, 2023
1 parent e20ca93 commit 0131717
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,13 +358,6 @@
}

# Celery
RETRY_POLICY = {
'max_retries': 10,
'interval_start': 0,
'interval_step': 1,
'interval_max': 10
}

CELERY_ENABLE_UTC = True
CELERY_TIMEZONE = "UTC"
CELERY_ALWAYS_EAGER = False
Expand Down Expand Up @@ -396,7 +389,7 @@
'socket_connect_timeout': 5.0,
'retry_policy': {
'timeout': 5.0
} | RETRY_POLICY
}
}
CELERY_RESULT_EXTENDED = True
CELERY_RESULT_EXPIRES = 259200 # 72 hours
Expand All @@ -407,7 +400,7 @@
'socket_connect_timeout': 5.0,
'retry_policy': {
'timeout': 5.0
} | RETRY_POLICY
}
}

if REDIS_SENTINELS:
Expand Down Expand Up @@ -438,7 +431,7 @@
CELERY_TASK_PUBLISH_RETRY = True
CELERY_TASK_PUBLISH_RETRY_POLICY = {
'retry_errors': None,
} | RETRY_POLICY
}

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

0 comments on commit 0131717

Please sign in to comment.