Skip to content

Commit

Permalink
Apply task upon eager retry
Browse files Browse the repository at this point in the history
  • Loading branch information
adieken committed Jul 10, 2023
1 parent c4a4dd8 commit 5c2fa70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions celery/app/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,7 @@ def retry(self, args=None, kwargs=None, exc=None, throw=True,
if is_eager:
# if task was executed eagerly using apply(),
# then the retry must also be executed eagerly in apply method
S.apply()
if throw:
raise ret
return ret
Expand Down

0 comments on commit 5c2fa70

Please sign in to comment.