arcus-smart-home / arcusplatform

Java Based Arcus Platform and Agent Components
Apache License 2.0
86 stars 50 forks source link

Allow schedules to be recalculated in event of error (#198) #199

Closed AndrewX192 closed 4 years ago

AndrewX192 commented 4 years ago

This PR adds a system to automatically re-calculate the nextFireTime for schedules in the event that a condition occurs where they are scheduled for a time in the past and the offsets are skipped (see #198). It's not currently understood why this condition would occur, but if it does the option scheduler.sanity.check can be set to true to perform additional sanity checking of current schedulers.