Skip to content

Comments

PR for Nth day of the Week on Mth Occurrence#321

Open
pallavJha wants to merge 3 commits intorobfig:masterfrom
pallavJha:master
Open

PR for Nth day of the Week on Mth Occurrence#321
pallavJha wants to merge 3 commits intorobfig:masterfrom
pallavJha:master

Conversation

@pallavJha
Copy link

This PR adds the feature of executing a job on nth Day of the Week. Now, the DoW spec can be of the form, N#M where N is the Day of the Week, Sunday(0) to Saturday(6), and M is the occurrence number, 1 to 4 or L for Last week.
For example,

  1. if the current day is Mon Jun 1 01:00 2020 and the cron spec is 1 1 * 6 4#3 then the next execution date will be Mon Jun 18 01:01 2020.
  2. if the current day is Mon Jun 1 01:00 2020 and the cron spec is 1 1 * 6 4#L then the next execution date will be Mon Jun 25 01:01 2020.

@pallavJha pallavJha changed the title PR for Nth day of the Week PR for Nth day of the Week on Mth Occurrence Jun 17, 2020
@pallavJha
Copy link
Author

Hi @robfig,

I've not updated the doc and README. I'll do it once the Code Review is complete.

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