Carlos Cueto
10/24/2023, 2:34 PMMarvin
10/24/2023, 2:34 PM0 5 * * *
. You can also specify a timezone if you want to enforce DST behaviors. Here's an example:
yaml
deployments:
...
schedule:
cron: 0 5 * * *
timezone: Your/Timezone
Just replace Your/Timezone
with your desired timezone. You can find a list of valid timezones in the IANA Time Zone Database.
Please note that Prefect uses croniter to specify datetime iteration with a cron-like format. While Prefect supports most features of croniter for creating cron-like schedules, it does not currently support "R" random or "H" hashed keyword expressions or the schedule jittering possible with those expressions.
And remember, if the timezone you provide observes DST, a 5AM daily schedule will maintain a local 5AM time through DST boundaries. Isn't that just thrilling?
You can find more details in the Prefect Schedules Documentation. Enjoy your scheduling adventure.