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
I'm trying to run some Python code when a task/DAG is manually marked as either failed or successful. I attempted to use on_failure_callback and on_success_callback, but it seems these callbacks aren't triggered by manual status changes.
I also tried the on_kill method of the operator, which does work, but it doesn't allow me to differentiate between the code that runs on a failure versus code for a success.
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
-
Hi,
I'm trying to run some Python code when a task/DAG is manually marked as either failed or successful. I attempted to use on_failure_callback and on_success_callback, but it seems these callbacks aren't triggered by manual status changes.
I also tried the on_kill method of the operator, which does work, but it doesn't allow me to differentiate between the code that runs on a failure versus code for a success.
Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions