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

Run job between start and end date + run job every x days #361

Merged
merged 12 commits into from
Dec 28, 2020

Conversation

suryanaik
Copy link
Contributor

Modified job.repeatEvery to include startDate, endDate and skipDays in the option to achieve the following scenarios:

  • Every 45 days at 8:00 AM CST starting 30-Aug-2016, run till 30-Aug-2017
  • Daily at 8:00 AM CST starting 30-Aug-2016, run till 30-Aug-2017
  • Every Wed and Fri at 8:00 AM CST Starting 30-Aug-2016, run till 30-Aug-2017

Will not disrupt existing users.

Surya Naik and others added 5 commits August 24, 2016 00:27
…ion to achieve the following scenarios:

- Every x days at 8:00 AM CST starting 30-Aug-2016
- Daily at 8:00 AM CST starting 30-Aug-2016
- Every Wed and Fri at 8:00 AM CST Starting 30-Aug-2016
@simison
Copy link
Member

simison commented Sep 8, 2016

Hmm, you've changed indentation from 2 to 4 all over the place.

@suryanaik
Copy link
Contributor Author

Ah! I didn't realize that. Sorry about that.

@wtfuii
Copy link
Contributor

wtfuii commented Sep 15, 2016

I think you need to fix that indentation issue before your PR will be reviewed and merged. I need that feature too, so i would be glad if the merge happens soon.

@suryanaik
Copy link
Contributor Author

I have fixed the indentation for job.js but not able to fix it for the test/agenda.js. Can some one help?

@lushc lushc mentioned this pull request Jun 16, 2017
@OmgImAlexis OmgImAlexis modified the milestone: 0.11.0 Jul 4, 2017
@OmgImAlexis
Copy link
Member

@suryanaik if you'd like to rebase this I'll be happy to review and look at getting this merged.

@leonardlin
Copy link
Contributor

will try to update this PR to work with current TS version.

@leonardlin leonardlin removed this from the 1.1.0 milestone Dec 28, 2020
@simison simison mentioned this pull request Dec 28, 2020
lib/job/compute-next-run-at.ts Show resolved Hide resolved
lib/job/compute-next-run-at.ts Show resolved Hide resolved
lib/job/repeat-every.ts Show resolved Hide resolved
@simllll
Copy link
Contributor

simllll commented Dec 28, 2020

overall looks good to me, just some small comments, but nothing that is blocking at all 👍

Copy link
Contributor

@leonardlin leonardlin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will continue to add more types in separate PR

@leonardlin leonardlin merged commit 78a08ca into agenda:master Dec 28, 2020
xenokratos pushed a commit to beedeez/agenda that referenced this pull request Mar 23, 2021
* Modified job.repeatEvery to include startDate and skipDate in the option to achieve the following scenarios:
- Every x days at 8:00 AM CST starting 30-Aug-2016
- Daily at 8:00 AM CST starting 30-Aug-2016
- Every Wed and Fri at 8:00 AM CST Starting 30-Aug-2016

* Fixed failing test

* Added endDate options

* Fixed missing endDate

* Changed the indentation to 2 from 4

* Update agenda.js

* Update agenda.js

* added tests and typescript

Co-authored-by: Surya Naik <surya.naik@saviance.com>
Co-authored-by: Leonard Lin <leonard@linhome.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants