in order to get flow of flows to work, do i have to use wait_for_flow_a? or can i just create_flow_run and define upstream_tasks as previous create_flow_run?
Mia
05/16/2022, 4:57 PM
So an example would be:
Copy code
with Flow("Flow_of_flows", storage=STORAGE) as flow:
child1 = create_flow_run(
flow_name="flow_child1",
project_name=PROJECT_NAME,
run_config=RUNCONFIG,
)
child2 = create_flow_run(
flow_name="flow_child2",
project_name=PROJECT_NAME,
upstream_tasks=[child1],
run_config=RUNCONFIG,
)
a
Anna Geller
05/17/2022, 12:58 PM
yes, that works - the wait task is required if you need to start the next flow run only after the first once completed - it is essentially polling for the state of other flow run to determine whether to run downstream tasks or block and not run downstream tasks if e.g. one child flow run failed
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.