Richard Hughes
07/22/2020, 2:48 PMJoe Schmid
07/22/2020, 3:04 PMfamily_datetimes = [
pendulum.parse("2020-07-15T17:30:00", tz="America/New_York"),
pendulum.parse("2020-07-16T17:30:00", tz="America/New_York"),
pendulum.parse("2020-07-18T15:00:00", tz="America/New_York"),
pendulum.parse("2020-07-19T15:00:00", tz="America/New_York")
]
family_attendees = ["Sarah", "Joe", "Kid1", "Kid2"]
family_schedule_datetimes = [r.add(days=-2) for r in family_datetimes]
nanny_datetimes = [
pendulum.parse("2020-07-17T12:30:00", tz="America/New_York"),
]
nanny_attendees = ["Maria", "Kid1", "Kid2"]
nanny_schedule_datetimes = [r.add(days=-2) for r in nanny_datetimes]
family_clock = DatesClock(dates=family_schedule_datetimes, parameter_defaults={"attendees": family_attendees})
nanny_clock = DatesClock(dates=nanny_schedule_datetimes, parameter_defaults={"attendees": nanny_attendees})
schedule = Schedule(clocks=[family_clock, nanny_clock])
with Flow("PoolReservation", schedule=schedule) as flow:
...
These don't happen to be at the same time, but they could be. Hopefully this helps!Richard Hughes
07/22/2020, 3:19 PMGenericSchedule = Schedule(clocks=[
CronClock(cron="0 5 * * 1",start_date=pendulum.now("America/Chicago"),parameter_defaults={"Name": "A"}),
CronClock(cron="50 * * * *",start_date=pendulum.now("America/Chicago"),parameter_defaults={"Name": "B"}),
CronClock(cron="50 * * * *",start_date=pendulum.now("America/Chicago"),parameter_defaults={"Name": "C"})
])
with Flow(schedule=GenericSchedule) as flow:
...
When the flow is registered I would expect to see B and C scheduled but, I am only seeing B scheduled and only B is running.Joe Schmid
07/22/2020, 4:19 PM