hello! Has anyone ever had success with Prefect v1 in creating a flow that dynamically creates a number of
StartFlowRun
tasks at runtime? My scenario is that I want a flow (call it
orchestratorFlow
) to orchestrate the execution of several instances of another flow that I have (call that one
ecsFlow
). The issue at hand is, I don't know how many instances of my
ecsFlow
I need to kick off until
orchestratorFlow
runtime; it could be 1, 8, or 50+ (each flow run of
ecsFlow
would be run with a different set of parameters), and would be determined based on a parameter passed to
orchestratorFlow
.
I've tried to follow the Prefect v1 map paradigm by doing
StartFlowRun.map([<config_parameters>])
, where
[<config_parameters>]
is a dynamically generated list of flow run kwargs returned by an upstream task, but that's not doing the trick. Thank you for any help!