William Jamir
08/16/2024, 11:22 AMMarvin
08/16/2024, 11:22 AMload_existing
option in prefect.yaml
, which means you can't directly preserve existing schedules via prefect.yaml
. However, you can explicitly define schedules within the YAML file like so:
deployments:
- name: your-deployment
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
The lack of the load_existing
parameter means you must manually define or copy the existing schedules you want to preserve.
For more details, check the links below:
- https://docs.prefect.io/latest/concepts/schedules/
- https://docs.prefect.io/latest/guides/prefect-deploy/
You might want to regularly update your prefect.yaml
to reflect any changes in schedules manually.Alexander Azzam
08/16/2024, 12:02 PMWilliam Jamir
08/16/2024, 1:49 PM