CA Lee
12/29/2022, 8:39 AMprefect.schedules.filters
.redsquare
12/29/2022, 9:26 AMCA Lee
12/29/2022, 10:55 AMredsquare
12/29/2022, 11:04 AMCA Lee
12/29/2022, 11:21 AMredsquare
12/29/2022, 11:30 AMCA Lee
12/29/2022, 11:32 AMschedule:
rrule: 'EXDATE:20230323' --> Needs to be expressed as: EXDATE: 20230323T000000Z
timezone: Asia/Singapore
It turns out that YYYYMMDD
works, however,
the error in the rrule is that it needs to be specified as EXDATE:
instead of EXDATE=
I was able to apply the above schedule to my deployment, but does not fit my needs, as I need the flow to:
⢠Run everyday at 430pm
⢠Excluding specified dates
Adding the first requirement to the rrule:
schedule:
rrule: 'EXDATE:20230323;FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR,SA;BYHOUR=16;BYMINUTE=30'
timezone: Asia/Singapore
The error encountered is: Invalid string (replacing ':'
with '='
or vice versa for the other properties FREQ
, BYDAY
, BYHOUR
, `BYMINUTE`does not work as well).
I also tried combining the rrule (using its EXDATE
property) with a cron expression, but that didn't work either.
schedule:
rrule: 'EXDATE:20230323'
cron: 5 9 * * 1-6
timezone: Asia/Singapore
day_or: true