Need to scheduled an process for every 15 days. every other week. I am not sure how the corn expression would be use.
Thanks in advanced.
Need to scheduled an process for every 15 days. every other week. I am not sure how the corn expression would be use.
Thanks in advanced.
You can try the following cron expression:
0 0 0 */15 * ? *
This one will trigger the process at 00:00:00am, every 15 days starting on the 1st, every month. You can modify it accordingly.
Hope this helps,
Best Regards.
Below expression would run on the 1st and 15th of every month
0 0 0 1,15 * ? *
or you can set up two different cron jobs, for 1st and 3rd Mondays of the month
0 0 0 ? * MON#1 *
0 0 0 ? * MON#3 *
The expression below doesn’t work properly in certain instances. i’ve been there…
Hi @arjunshenoy Thanks for the answer. I had executed yesterday. and now need to execute other Wednesday (after 15 Days). Can you help me on this ?
Sorry I did not explain this details while post the question.
Thank You
Hi Thanks for the answer. I had executed yesterday. and now need to execute other Wednesday (after 15 Days). Can you help me on this ?
Sorry I did not explain this details while post the question.
Thank You
3 cron jobs for Every other Wednesday is what i can think of.
0 0 0 ? * WED#1 *
0 0 0 ? * WED#3 *
0 0 0 ? * WED#5 *
But, How can that match of every 15 days ? This will have to 3 different triggers. I am confused here.