function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
boBNunnyboBNunny 

CRON Scheduling

I'm looking to schedule a process to run on the 1,8,12,16 days at 1AM in the months 3,6,9,12 every year.

 

I have the following CRON string:

0 0 1 1,8,12,16 3,6,9,12 ? *

 

It works, but it doesn't reschedule itself.  It simply finds the next date in the future, runs it and then doesn't re-schedule for the next.  

 

Any ideas?

kiranmutturukiranmutturu

try with this 

 

string str = '0 0 1 1-8-12-16 3-6-9-12 *';

 

                    

 

bobnunny1bobnunny1

It won't work.  It gives the following error:

Support for specifying both a day-of-week AND a day-of-month parameter is not implemented.

 

Also, doesn't the dash signify a range instead of specific day?