Is it possible for a prefect flow to spin up a dynamic number of other flows based on the output of a task? I see in these docs some examples of spinning up a static number of flows but I would love to have the number of children flows vary from run to run.
e
emre
01/18/2022, 11:27 PM
Yup!
create_flow_run
is just like any other prefect task, meaning it can be mapped.
So a task would output a list, and you would use
create_flow_run.map
to map over that list. That would spin up as many flows as the length of your output list.
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.