https://prefect.io logo
Title
m

Michael Moscater

04/26/2022, 7:52 PM
Hello, is it possible to have a parent flow run a mapped create_flow_run task with a flow and multiple parameters, so the the created flows would be able to use the different parameters passed?
k

Kevin Kho

04/26/2022, 7:53 PM
Yes you can just provide a list of dictionaries for the parameter and use
create_flow_run.map()
Check this
m

Michael Moscater

04/26/2022, 7:55 PM
to elaborate, I want to create_flow_run.map(['some_flow','some_flow'],parameters=[dict(x=1),dict(x=2)])
@Kevin Kho I'm a discord member but i cant view that link..
k

Kevin Kho

04/26/2022, 8:18 PM
Oh welp. But yes that
create_flow_run.map
will work
m

Michael Moscater

04/26/2022, 8:20 PM
brilliant, thank you