Replies: 1 comment 3 replies
-
I think on_kill is called when the task itself fails or succeeds. I believe when the task gets cleared the attempt is to terminate task gracefully and the I think what you can do to get more resillient to it is to implement on_failure_callback or use the new features of Airlfow 2.5 - listeners if you want to be sure to receive the callback, regardless of whatever happened with the task process. Callbacks and listeners are handled in other processes in case the task process fails to be killed gracefully. |
Beta Was this translation helpful? Give feedback.
-
Is there a way to call on_kill method when clearing (or setting on failed or succeed) a task ?
Beta Was this translation helpful? Give feedback.
All reactions