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

Bi-weekly and bi-weekly the other week #556

Open
tessem opened this issue Dec 15, 2022 · 1 comment
Open

Bi-weekly and bi-weekly the other week #556

tessem opened this issue Dec 15, 2022 · 1 comment

Comments

@tessem
Copy link

tessem commented Dec 15, 2022

Question:
Is there a way to run a job every second or third week on a specific day and time (week 1,3,5,7...) ? And similar, is there a way to slide it 1 week (week 2,4,6,8...) ? E.g. running jobA on Mondays in odd-numbered weeks, and jobB on even-numbered weeks.

I know it can be solved with modifying the job-function itself.

@markshep
Copy link

I'd be interested in this too. In the case of every().week or every(N).weeks the at() method should have a days offset too (from 0 to 7*N - 1). The offset needs to be from a defined point in time though - for the case of every week it'd be from (say) Monday, but for multi-week ones I guess it'd need a fixed point in time, e.g. 1st Jan 2018 (as that's a Monday).

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

No branches or pull requests

2 participants