Thread
#prefect-server
    m

    Maria

    4 months ago
    Hello, is it possible to use multiple different images for tasks in a prefect flow? And with a Kubernetes runner or Dask runner?
    Anna Geller

    Anna Geller

    4 months ago
    m

    Maria

    4 months ago
    thanks! I’ll check it out😃
    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:
    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,
        )
    Anna Geller

    Anna Geller

    4 months ago
    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

    Maria

    4 months ago
    thanks for the clarification!