We have mAirlist running in our studios - loading a playlist at :55 every hour using one of Charlies ‘Next Hour’ scripts.
It all appears to run fine during the day - until midnight, at 00:55, when it appears to lock up. When I get in the next morning, it still displays 00:55 in the next event panel. I have to open the event manager and close it to get it operating again.
I took a look at the code - and found a possible problem: When the script happens to crash because of an unhandled runtime error or so, the “next execution” time isn’t updated and the event won’t run until the next internal update cycle of the event, e.g. when you edit it in the event manager.
I shall fix this so that the update is performed in any case, even if one of the actions causes an error.
Did you see any error messages either in a dialog or the system log?
Purely out of programmer’s curiosity :D, Torben: I assume this means the Event Scheduler waited for the Event to complete before updating the ‘next execution’ date/time; but will now update the ‘next execution’ date/time just before attempting to initiate the Event?
Yes. Or at least I will put an exception handler around the “execute the actions” block so that the update will be performed even in the event of an unhandled exception.