Guest Paul Alexander Posted July 21, 2022 Share Posted July 21, 2022 We have an integration call in one of our BPMs which checks what the day is, and, if it's Wednesday, then it adds a task. The requests are logged using a CRON scheduler as per https://wiki.hornbill.com/index.php?title=API_Scheduler The schedule is set like this: "CronSchedule": "0 0 0 ? * MON,TUE,WED,THU,FRI", which means that it runs at midnight of the each day. It seems that since the clocks went forward/backwards/whatever they did in March, these tasks which should only show up on a Wednesday, now show up on a Thursday (yes, it's taken us this long to see this ) So, my question is, how do I either change the CRON schedule to run at maybe 2am rather than midnight OR, is there something in the integration call which will pick up the fact that we're using daylight savings time, and accurately tell me what the day is at midnight? thanks Link to comment Share on other sites More sharing options...
Steve Giller Posted July 21, 2022 Share Posted July 21, 2022 If you change the CRON expression to run at 2am you are never affected by Daylight Saving changes. I'm not an expert on CRON (or even a novice, for that matter) but the wikipedia entry may help here. Link to comment Share on other sites More sharing options...
Guest Paul Alexander Posted July 21, 2022 Share Posted July 21, 2022 HI @Steve Giller I did come to the same conclusion and, like you, I don't really have any experience with CRON scheduling, but I'm going to try this schedule: 0 0 2 ? * MON,TUE,WED,THU,FRI * For anyone else looking for CRON related stuff, this is a good resource: https://www.freeformatter.com/cron-expression-generator-quartz.html# (I hope it's ok to add links here?!) 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