I’m facing a very weird issue with jsr223 script (jython).
I have a cron trigger defined as:
TimerTrigger("0 * * * * ?")
It should fires every minutes at second 0.
But sometime this trigger fires just some milliseconds before the second 0!
2017-02-21 17:08:59.999 [INFO ] [nhab.model.jsr223.AlarmManager] - DEBUG ERROR --> Minute Trigger FIRED before SEC == 0 ( 2017-02-21 17:08:59.999000 )```
This is a problem in my case becouse with a single cron expression I want to have 3 triggers: minute (sec=0), hour (sec=0 AND min=0) and day (sec=0 AND min=0 AND hour=0)
Current workaround is to check, for the minute trigger:
if ( (nowSec == 0 or nowSec == 59 ) and nowMin != 0 and nowHour != 0):
comments? thoughts? suggestions?