how to create a cron expression for every 2 weeks -
here cron
expression tried 0 0 0 */14 * ?
giving following schedules
start time:- friday, september 8, 2017 1:25 am
next scheduled :-
1. friday, september 15, 2017 12:00 2. friday, september 29, 2017 12:00 3. sunday, october 1, 2017 12:00 4. sunday, october 15, 2017 12:00 5. sunday, october 29, 2017 12:00
this expression working every 2 weeks in every month, requirement has run every 2 weeks, mean after executing sept 29th
, nxt schedule should october 13
scheduling october 1
there no direct cron
expression every 2 weeks kept following cron
expression , similar 2 weeks not 2 weeks
cron every 2weeks(on 1st , 15th of every month @ 1:30am) - 30 1 1,15 * *
wiki
Comments
Post a Comment