https://prefect.io logo
r

Rei Mendel

05/26/2022, 12:29 PM
Hey, how can I map flow of flows with dynamic parameters? something like this: (Is it possible to get the parameters from a task?)
Copy code
parameters = ['~/folder1', '~/folder2', '~/folder3']
    create_flow_run.map(flow_name="List dir", parameters={"folder_path": ???})
k

Kevin Kho

05/26/2022, 2:40 PM
Yes you can get the parameters from the task. In this case, parameters has to be a List of dictionaries. So you need to make it with the structure
Copy code
[{"folder_path": '~/folder1'}, {"folder_path": '~/folder2'}]
6 Views