Jump to content

Recommended Posts

Posted

@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

image.thumb.png.3a5df2ce682c633831dc39cd9850f9e7.png

https://crontab.guru/#0_5_15-21_*_Wed

image.thumb.png.c7f31d1866dab6b685ff59d941bf4926.png

Posted

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 

 

Posted

@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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...