Vamsi Reddy
11/01/2021, 6:37 PMKevin Kho
all_failed
trigger. But you can not chain a task to the flow failure because tasks need to be inside FlowsVamsi Reddy
11/01/2021, 6:41 PMAnna Geller
all_finished
trigger (aka always_run
). And in the case something went wrong with the task that creates a cluster, perhaps you can add retries and/or add a state handler that does something if this task failed?Vamsi Reddy
11/01/2021, 7:00 PMany_failed
would help since if any of my upstream task fail then i want to shut down the cluster. i have different cases within which i am already shutting down the cluster. this task is to just be doubly sure. if the cluster is turned off by any of the cases i have in the flow then running this task will not do anything since cluster is already turned off(which is fine). this is more for an edge case scenario where a cluster is spun up and i want to turn it off at the very endAnna Geller
any_failed
is what you need. I was thinking that you want to shutdown the cluster once all tasks are finished - all_finished
would be better in that case