dbader / schedule

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

Add when() in __init__.py support when to start job #578

Closed Smpests closed 1 year ago

Smpests commented 1 year ago

May this be useful?Use it like"every(10).seconds.when('10:00').until(22:00)",run every 10 seconds from 10:00 to 22:00 every day.

Smpests commented 1 year ago

Tested and unable to implement the previously mentioned job, as currently the until() for each job is only set once and will not be updated. Maybe we need to do this after: 'every (1). days. every (10). seconds. when ('xx: xx'). until ('xx: xx ')'。 I am currently implementing it externally for use in my code.