https://prefect.io logo
b

Ben Muller

10/20/2022, 10:30 PM
G'day - prefect 1.0 question. If I have a "master flow" and I trigger a "subflow" with
create_flow_run
if that subflow then triggers more "subsubflows" if one of them fail, will my master flow know about it ? is there a way to propagate any of these signales?
1
m

Matt Conger

10/20/2022, 10:52 PM
Hey Ben, I included a blog post here that goes into the
wait_for_flow_run
task in 1.0 (this section is about 1/4 of the way through the article) https://www.prefect.io/guide/blog/how-to-make-your-data-pipelines-more-dynamic-using-parameters-in-prefect/ I also included our documentation of this task along with some documentation on states which could be beneficial for your use case. https://docs-v1.prefect.io/api/latest/tasks/prefect.html#wait-for-flow-run https://docs-v1.prefect.io/api/latest/engine/state.html#state-2
b

Ben Muller

10/20/2022, 11:17 PM
thanks @Matt Conger - so I guess that is what I am asking - do I need to have
raise_final_state
set to True in all the flows and subflows so that the parent / master flow is aware of any failures?
m

Matt Conger

10/20/2022, 11:31 PM
If you want the parent flow to only succeed if all of the child flows run successfully than I believe so