Thanks, Kevin. I have a flow that needs to run the first Monday of every month and a daily flow that should run every day except for the first Monday. Can the RRule somehow be used to filter as well?
k
Kevin Kho
12/10/2021, 1:32 AM
There is an RRuleClock that you can use if you want to combine multiple clocks
p
Pedro Machado
12/10/2021, 2:00 AM
I ended up using a
rruleset
Copy code
# At 22:01 CST on Monday, Tuesday, Wednesday, and Thursday,
# except for the first Monday of each month. Times below are UTC.
rset = rruleset()
rset.rrule(rrule(DAILY, byweekday=(TU, WE, TH, FR), byhour=(4), byminute=(1)))
rset.exrule(rrule(MONTHLY, byweekday=(TU(1))))
schedule=RRuleSchedule(rrule_obj=rset)
k
Kevin Kho
12/10/2021, 2:18 AM
Did it work for you?
p
Pedro Machado
12/10/2021, 3:27 AM
it looks like it did. I need to spend more time looking at the dates to make sure.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.