Hello, I’d like to schedule multiple runs of a par...
# ask-community
z
Hello, I’d like to schedule multiple runs of a parametrized flow at the same time, with each run having a different parameter input. I’m thinking I can either build a parent flow that uses the python client api to initiate each child flow run, or maybe its possible to have a parentless approach where multiple runs of the flow are on the same schedule, each with a different input. Another possible solution using a parentless approach could involve an external data source that stores the set of parameters and keeps track of whether each one has been picked up by a flow run. I’m looking for best practice as I don’t think these are great approaches. Would appreciate any help here! Thank you.
c
Hi Zach! This is possible as a first-class API on Prefect Schedule objects; for more info and an example, check out this doc: https://docs.prefect.io/core/concepts/schedules.html#varying-parameter-values
z
Ah I can assign multiple clocks to a flow, and set parameter defaults on each clock
c
exactly
z
Nice! Thank you very much for your help
c
anytime