Jump to content

Hornbill Scheduler not honouring range values on CronSchedule


Recommended Posts

@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

Link to comment
Share on other sites

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

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
 Share

×
×
  • Create New...