Ability to skip a job
Open
contributor friendly
enhancement
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 999
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm creating a pool of tasks which can be run or not (depending on the weather).
I would like to skip a particular run of a job without lost history of previous run.
I was thinking to do it like that.
``` python
def func():
# this time, the job should not be done,
# but must stay in the schedule queue for next time
# This must keep last_time property unchanged,
# and update next_time property
if something():
return schedule.SkipJob
# normal running
do_something_else()
schedule.every().day.do(func)
```
What do you think?
Cheers,
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.