Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement .monthThe(<nDay>) #510

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

XuanShine
Copy link

@XuanShine XuanShine commented Feb 28, 2022

Hi,
I’ve implemented .monthThe(nDay).
Because the schedule does not remind last execution, if we try:
schedule.every(4).weeks.do(job), and the program restart before 1 month, the job can never be start.
With .monthThe(5), the job will we running every 5th of month. So even if the program restart, it will be run 1 time per month.
Take care, 31th happens not regulary.
Also, I’ve create a new property in Job: monthDay so now, we use:
schedule.every().monthThe(12).at("12:00:00").do(job)
In the future:
schedule.every(5).monthsThe(12).at("12:00:00").do(job)
Regards

@XuanShine XuanShine changed the title Implement .ofMonth(<nDay>) Implement .monthThe(<nDay>) Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant