What's the meta way to run one task if another task fails in 2.0? pass the task as a parameter to the dependent task and check if the state is failed there? From what I can tell, the wait_for keyword will only check if it is Finished, not whether it is completed or failed
k
Kevin Kho
03/17/2022, 9:17 PM
You can check the state by calling
.get_state()
in the
@flow
block and comparing it
See the example here under “Using results from tasks”