Hi, I created a flow of flows. Is there a way to call subflows with StartFlowRun depending on values from a input Parameter. For example input parameter has values [a, b, c] so I need to call StartFlowRun for flow “a”, “b” and “c”
k
Kevin Kho
10/22/2021, 6:07 PM
Hey @Giovanni Giacco, I think you can map over the
StartFlowRun
call.
Copy code
start_flow = StartFlowRun(...)
with Flow(...) as flow:
start_flow.map(parameters=[list_of_dict_of_parameters])
And I think this should trigger multiple StartFlowRun calls
Kevin Kho
10/22/2021, 6:08 PM
You may need an intermediate task to reshape that input into a list of dictionaries
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.