Does Prefect 2 have something analogous to `wait_f...
# best-practices
m
Does Prefect 2 have something analogous to
wait_for_flow_run
from Prefect 1? I'd like to have a flow of flows which stops in a Failed state if one of its subflows fails, but I'm not sure how best to implement this in Prefect 2.
1
m
Thanks for the direction! My flow-of-flows still 'succeeds' even when one of its subflows fails. Right now I'm manually checking my subflow for Failed status and raising an error if I see it, I was just curious if there was a built-in way to do that.
z
You can just access the result of the subflow i.e.
state.result()
which will raise an exception if it’s failed
1