Miksus / rocketry

Modern scheduling library for Python
https://rocketry.readthedocs.io
MIT License
3.26k stars 105 forks source link

ENH: Cron-style time periods (and conditions) #69

Closed Miksus closed 2 years ago

Miksus commented 2 years ago

Is your feature request related to a problem? Please describe. Some people might prefer Crontab-like scheduling options over the built-in time periods even though one can compose pretty much the same scheduling with it as well.

Describe the solution you'd like The solution will consist of two parts: time periods and then a condition wrapper for it. The solution should extend the existing time system to support intervals mimicking the Cron time intervals and then it should be trivial to add that to the conditions. Then there could be a condition added in the condition API and to the condition syntax to compose such a combination.

Describe alternatives you've considered Using existing time periods and conditions.

Miksus commented 2 years ago

This is currently being worked on and the thing is almost implemented. The skip mechanism might require more thinking and possibly being off from initial PR.

Miksus commented 2 years ago

Added in #73