Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions contentcuration/contentcuration/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,8 @@ def gettext(s):

# CELERY CONFIGURATIONS
CELERY_BROKER_URL = REDIS_URL
# with a redis broker, tasks will be re-sent if not completed within the duration of this timeout
CELERY_BROKER_TRANSPORT_OPTIONS = {'visibility_timeout': 4 * 3600}
CELERY_RESULT_BACKEND = REDIS_URL
CELERY_REDIS_DB = os.getenv("CELERY_REDIS_DB") or "0"
CELERY_BROKER_URL = "{url}{db}".format(
Expand Down
4 changes: 2 additions & 2 deletions contentcuration/contentcuration/utils/celery/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def my_task(self):
track_progress = False

# ensure our tasks are restarted if they're interrupted
acks_late = True
acks_on_failure_or_timeout = True
acks_late = False
acks_on_failure_or_timeout = False
reject_on_worker_lost = True

_progress_tracker = None
Expand Down