Alfie
12/31/2020, 1:35 AMChris White
start_date
of your individual clocks has will be respected. Configuring this depends on the interface - if you use the higher level schedule interface:
import pendulum
from prefect.schedules import CronSchedule
pst_start_date = pendulum.now("US/Pacific")
schedule = CronSchedule(cron_string, start_date=pst_start_date)
If you are using the lower level clocks interface directly, then each clock can be passed its own start date with its own timezone configuration:
import pendulum
from prefect.schedules.clocks import CronClock
from prefect.schedules import Schedule
pst_start_date = pendulum.now("US/Pacific")
est_start_date = pendulum.now("US/Eastern")
west_clock = CronClock(cron_string, start_date=pst_start_date)
east_clock = CronClock(cron_string, start_date=est_start_date)
schedule = Schedule(clocks=[east_clock, west_clock])
Alfie
12/31/2020, 2:38 AM