https://prefect.io logo
#prefect-server
Title
# prefect-server
m

Mia

05/11/2022, 9:10 AM
Hello, is it possible to use multiple different images for tasks in a prefect flow? And with a Kubernetes runner or Dask runner?
a

Anna Geller

05/11/2022, 11:03 AM
m

Mia

05/11/2022, 5:47 PM
thanks! I’ll check it out:)
👍 1
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?
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
m

Mia

05/17/2022, 2:00 PM
thanks for the clarification!
👍 1
2 Views