You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been having an issue with error handling in chains that timeout. Not sure if I'm doing something wrong or if it is a bug with Celery.
What I want to do
I want to run a callback in case the task fails or times out.
What I'm doing
Running the worker:
celery -A src worker -l INFO
Running the task:
python main.py
Expected output
The log task is run once, and logs
Error here myreq
.Real output
The log task ran twice and logs that message twice
Is there any way of running this error callback only once on timeout? It works as expected when an error is raised from within the task.
Beta Was this translation helpful? Give feedback.
All reactions