Skip to content

Commit

Permalink
Rerun unsuccessful celery tasks indefinitely
Browse files Browse the repository at this point in the history
Change celery tasks config to rerun tasks indefinitely should they fail for an expected reason, like a lock error or because of the tasks return value (conditional gate).
  • Loading branch information
wingi11 authored Apr 8, 2021
1 parent f1dff29 commit 8ea4038
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions joeflow/runner/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
@shared_task(
bind=True,
ignore_results=True,
max_retries=None,
autoretry_for=(OperationalError,),
retry_backoff=True,
)
Expand Down

0 comments on commit 8ea4038

Please sign in to comment.