Noah Holm
02/16/2022, 10:56 AMtask1
-> task2
-> task3
Task3 is the last task of the flow and has other upstream dependencies which might cause task3 to be skipped in a flow run. Today a flow run got the following states: Failed
-> TriggerFailed
-> Skipped
I assume the flow is considered successful since task3 was skipped and skipped states are considered successful (that makes sense). But we don’t want to consider a flow run successful if any tasks in the flow has a failed state. Refreshing my skills in the docs I’m thinking of handling it with state handlers, but I assume that a state handler on the flow would still see the flow state as successful due to the last skipped task. Is the only way forward here to have a state handler on each of the tasks in the flow?Anna Geller
flow.set_reference_tasks(
[
task1,
task2,
task3,
]
)
This way, if any of those 3 tasks fails, the flow run will be considered Failed as well.Noah Holm
02/16/2022, 11:17 AMNoah Holm
02/16/2022, 12:26 PM