Skip to content

Commit

Permalink
fix: task recovery when autoscaler kills pod (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnagro authored Jan 11, 2024
1 parent 5daff78 commit 4f3f6ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enterprise_catalog/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@
# see https://github.com/celery/django-celery-results/issues/326
# on CELERY_RESULT_EXTENDED
CELERY_RESULT_EXTENDED = True
# these settings allow recovery when autoscaling ends up killing a task
# see https://stackoverflow.com/a/45059806
CELERY_ACKS_LATE = True
CELERY_TASK_REJECT_ON_WORKER_LOST = True

# Celery task time limits.
# Tasks will be asked to quit after 15 minutes...
Expand Down

0 comments on commit 4f3f6ea

Please sign in to comment.