Akansha
(Akansha Sharma)
September 20, 2018, 6:33am
1
Dear community
I’m trying to schedule a job on first and second Monday of every month.
What would be the cron expression? Tried with :
0 0 15 ? 1/1 MON#1,MON#2 *
0 0 15 ? 1/1 MON#1,2 *
The result I am getting is :
Monday, October 1, 2018 3:00 PM
Monday, November 5, 2018 3:00 PM
Monday, December 3, 2018 3:00 PM
Monday, January 7, 2019 3:00 PM
Monday, February 4, 2019 3:00 PM
I am not getting the second Monday of the month.
Please suggest some solution.
Regards,
Akansha
quihan
(Qui Han)
September 20, 2018, 10:19pm
2
Hi @Akansha , I think you can’t do it in one expression. How bout splitting it to two schedules?
One for First Monday of the Month.
0 0 15 ? 1/1 MON#1
Second for Second Monday of the Month.
0 0 15 ? 1/1 MON#2
Hope this helps.
2 Likes
Akansha
(Akansha Sharma)
September 21, 2018, 8:17am
3
Hello @quihan ,Thanks for your reply… I tried for two schedules in orchestrator… But it is not allowing to create one more process with another environment.
quihan
(Qui Han)
September 22, 2018, 8:36pm
4
Hi @Akansha , what is the error there?
Cheers.
system
(system)
Closed
September 25, 2021, 10:58pm
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.