Offset for job start
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 999
- PR merge metrics
- No merged PRs in 30d
Description
Hello, at first thank you for this easy to use schedule solution. I do really like it and appreciate you work.
I would like to ask if is there any possibility that you would implement offset for adding jobs?
I would like to add scheduled job every 1,2 or 3 days, at some specified hour.
Unfortunately when this time passed next schedule is added respectively 1, 2 or 3 days later thus there is no first run in moment of start of the scrip, which can be quite important.
I could also use it to run different jobs with same intervals but without overlapping each other (ie. job scheduled for 2 days but one is with offset 1 day thus one runs every odd day and one runs every even day).
I know that I could create some wrapping class for your schedule but it is only one thing managing schedules in my script and I prefer to leave it as is.
Concluding, I would like to request for .start_offset(count).day [..] or any different interval, that first run of job will be added for next day.
Would that be possible?
Thank you in advance.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the scheduling API behind the requested `.start_offset(count).day` form and how the first run is calculated. Confirm the desired behavior for daily, two-day, and three-day intervals, including offset jobs, then define completion as an initial run at the requested offset without changing later interval behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100