https://prefect.io logo
j

Jonathan Wright

02/17/2021, 10:51 AM
Hi. I am interested in how Prefect approaches the concept of nested or sub flows. That is running a flow inside another. I’ve not found anything in the docs about this? Or is this a design pattern that Prefect discourages? Thank you.
a

Amanda Wee

02/17/2021, 11:22 AM
Would running a flow after another flow suffice? If so, there's: https://docs.prefect.io/core/idioms/flow-to-flow.html
j

Jonathan Wright

02/17/2021, 1:11 PM
Thank you. I hadn’t found that page yet. That’s definitely very relevant. I can see how I could write a task to start a flow and include that task inside a flow. We are migrating some workflows, from another system, which iterates over rows of data and starts a new “flow” for each. But I was wondering if that’s an anti-pattern in Prefect.
3 Views