<@ULVA73B9P>: How to run different schedules with ...
# ask-marvin
s
@Marvin: How to run different schedules with different parameters on the same deployment?
m
It appears there are methods to have different schedules within the same deployment, though setting different parameters for each schedule is a more complex topic in Prefect. 1. Creating Multiple Schedules: Prefect allows for multiple schedules within a single deployment. This can be done by defining a
schedules
section in your
prefect.yaml
file:
Copy code
deployments:
   ...
   schedules:
     - cron: "0 0 * * *"
       timezone: "America/Chicago"
       active: false
     - cron: "0 12 * * *"
       timezone: "America/New_York"
       active: true
     - cron: "0 18 * * *"
       timezone: "Europe/London"
       active: true
2. Per-Schedule Parameters: There is an ongoing discussion in the GitHub issue #14524 about supporting different parameters for each schedule in a single deployment. As of now, parameters can only be set for a deployment as a whole. However, support for multiple schedules with their own parameters is planned. If you need to implement specific parameters for each schedule before this feature is officially supported, you might have to create separate deployments for each parameter set, even though this comes with a drawback of cluttering the deployments list. For more detailed and up-to-date information, you should track the mentioned GitHub issue and keep an eye on the Prefect documentation regarding schedules. Is there anything else you would like to know about scheduling in Prefect or other functionalities?