dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.77k stars 961 forks source link

Schedule events which are aligned to the calendar #114

Closed khpeek closed 3 years ago

khpeek commented 7 years ago

The Periodic Interval of Time (PIVL) data type has an 'alignment' property which specifies if and how the repetitions are aligned to the cycles of the underlying calendar (e.g., to distinguish every 30 days from "the 5th of every month"). A non-aligned periodic interval recurs independently from the calendar, whereas an aligned one is synchronized with the calendar.

As I understand it, events scheduled by schedule are currently of the non-aligned type (similar to cron). Enhancing it to include calendar-aligned periodic intervals might be useful.

dgrant commented 7 years ago

Propose for closing? @dbader

SijmenHuizenga commented 3 years ago

Hi @khpeek, thanks for teaching me something :) Calendar alignment seems like quite an advanced topic that only a few users would benefit from. Schedule is a simple library and adding something like this doesn't fit well in that philosophy.