Skip to content

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