I want to schedule a job using Quartz Scheduler which will occur weekly but with some intervals. For example let say I want to schedule a job which will occur only on Friday and Saturday but in a gap of 2 intervals. Meaning the next occurrence will not execute on next Friday and Saturday but on next to next Friday and Saturday. Please tell me if you need any information. Thanks.
Asked
Active
Viewed 475 times
2
-
Possible duplicate of [Quartz cron expression for Once in a two week on particular day](https://stackoverflow.com/questions/36641783/quartz-cron-expression-for-once-in-a-two-week-on-particular-day) – walen Jun 15 '17 at 08:47
1 Answers
0
Take a look at http://www.quartz-scheduler.org/documentation/quartz-2.x/tutorials/crontrigger.html
Particularly this:
0 15 10 ? * 6#3 Fire at 10:15am on the third Friday of every month
I didn't see a way to have the same job fire on say the first and third Friday. To get around this you can probably schedule multiple jobs. Example, one job to run on the first Friday, the second on the third Friday and so on...

Yogesh_D
- 17,656
- 10
- 41
- 55