Matt Harvey
09/14/2019, 3:11 PMCronClock
needs to be set in UTC. Not a big deal, but is it possible to override the timezone? ๐Chris White
09/14/2019, 6:27 PMstart_date
keyword argument at initialization; if you pass a timezone-aware datetime / pendulum object, Prefect will respect that timezone for the clock / schedule. E.g.,
from prefect.schedules.clocks import CronClock
import pendulum
clock = CronClock("0 1 0 0 1/5", start_date=pendulum.now("US/Eastern"))
next(clock.events())
DateTime(2020, 1, 1, 1, 0, 0, tzinfo=Timezone('US/Eastern'))
Marvin
09/14/2019, 6:30 PMMatt Harvey
09/15/2019, 10:40 PM