https://prefect.io logo
z

Zac Hooper

10/14/2022, 4:49 AM
Does anybody have any working examples of RRuleSchedules starting at a half past? So for example I want a flow to run every 5 minutes, between 10:30am and 4pm, Monday to Friday. My first thought is to use a rruleset but so far I haven't been able to successfully stringify
✅ 1
j

Jeff Hale

10/14/2022, 11:14 PM
Hi Zac. I haven't looked closely, but this new PR might fix the issue: https://github.com/PrefectHQ/prefect/pull/7165
z

Zac Hooper

10/16/2022, 12:28 AM
Sweet too easy. I’ll follow along 😄
z

Zac Hooper

10/18/2022, 11:25 PM
Seen this is in the new release. For reference to anyone who stumbles across this read the key function to do is:
Copy code
schedule = RRuleSchedule.from_rrule(my_set)
Docs don't appear to be updated with this yet but was able to reference it in the PRs tests: https://github.com/PrefectHQ/prefect/pull/7213/commits/f37173794755835f6814b5237de1d5f92a454575
🙌 1
3 Views