https://prefect.io logo
Title
t

Tibs

11/23/2022, 1:30 PM
Hi, is it possible to add dependency for a subflow, so it will wait for a task to complete? Similar like wait_for when using a task.
a

Anna Geller

11/23/2022, 1:34 PM
subflows are blocking by default, so subflow B won't start until subflow A finishes (without wait_for) wait_for currently exists on subflows for tasks, but not for subflows because flow doesn't have .submit - we have open issue here https://github.com/PrefectHQ/prefect/issues/6689
t

Tibs

11/23/2022, 1:39 PM
Hmm, so currently I can't define dependencies properly if I have tasks and subflows in a flow?
a

Anna Geller

11/23/2022, 2:54 PM