<@ULVA73B9P> Is it possible to supply different in...
# ask-marvin
t
@Marvin Is it possible to supply different input parameters for a flow for different cron schedules in a prefect.yaml file? For example I want my flow to run with cron schedule "0 8 * * *" and input parameter of "flag: 1" and also run with cron schedule "15 9 * * *" with input parameter of "flag: 2"
m
Good news! You can assign multiple schedules to deployments in Prefect using the CLI, the Prefect UI, or in block-based deployment YAML files. However, supplying different input parameters for each schedule directly within the same flow might require careful handling. At this time, there is no direct YAML syntax to define different input parameters for each schedule. You'll likely need to implement a conditional logic within your flow code to dynamically decide which parameters to use based on an identifier (passed as a parameter itself). You can find more on Prefect schedules in the following documentation: - Prefect Schedules Concept: https://docs.prefect.io/latest/concepts/schedules/ Additionally, keep an eye on the GitHub repo for updates, as features in Prefect are rapidly evolving. If you need specific help crafting the deployment YAML or flow code, feel free to ask!
c
Hey @Thomas DeBroux - this is actively under development right now and will be available with the release of the 3.0 SDK in approximately 2 weeks
t
@Chris White Thanks Chris! Looking forward to using it!
🙌 2
n
@Chris White Where can I find documentation on how this works?