Martyn Houghton Posted September 7, 2022 Share Posted September 7, 2022 @Steve G The Hornbill Scheduler is not honouring range values on the CronSchedule value. Example "25 0 5 15-21 * Wed" is triggered this morning Wednesday 7th September where the day of the month is not within the range 15-21. We are attempting to schedule the logging of requests on different Wednesdays of the month, in this example for Windows Updates. Cheers Martyn https://crontab.guru/#0_5_15-21_*_Wed Link to comment Share on other sites More sharing options...
Steve G Posted September 7, 2022 Share Posted September 7, 2022 Morning @Martyn Houghton, That's standard CRON behaviour I'm afraid - if DOM and DOW are provided, then it's an OR not an AND, so it'll run the scheduled job if the day of the month is between 15-21 OR the day of the week is a Wednesday. From the CRON specification: While normally the job is executed when the time/date specification fields all match the current time and date, there is one exception: if both "day of month" (field 3) and "day of week" (field 5) are restricted (not "*"), then one or both must match the current day.[3] Cheers, Steve Link to comment Share on other sites More sharing options...
Martyn Houghton Posted September 7, 2022 Author Share Posted September 7, 2022 @Steve G That's a pain. Will have to log the request based on the first possible day of the month the third Wednesday can be and hard code it going on hold in the BPM until Wednesday if the day if is not already Wednesday. Cheers Martyn Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now