Jeremy Yeo
05/14/2021, 12:33 AMIntervalSchedule
similar to having multiple clocks in the docs (https://docs.prefect.io/core/concepts/schedules.html#clocks)? What would be the recommended way to have a single flow that can run on 2 schedules (say every 5 minutes and every 30 minutes)? I guess we could probably achieve this with a 1 minute schedule and check within the flow run if now().minute == 30
or now().minute % 5 == 0
or some similar method but just wondering what would "prefecters" do...nicholas
schedule = Schedule(clocks=[IntervalClock(timedelta(minutes=5)), IntervalClock(timedelta(minutes=30))])
nicholas
schedule = Schedule(clocks=[IntervalClock(timedelta(minutes=5)), IntervalClock(timedelta(minutes=30)), CronClock("30 * * * *")])
Jeremy Yeo
05/14/2021, 2:14 AMnicholas