Handling Restarts

The Scheduler is capable of re-initializing itself and is therefore able to handle unexpected or scheduled server restarts or repave events. To do so, the Scheduler runs an Initializer task every 2 minutes, from when the server starts up. The objectives of this task are

  1. Identify all SCHEDULED task instances across all the Schedules, and verify that for each of them, a timer exists. In case a timer is found, nothing needs to be done. Otherwise, the timer is created.

  2. The Initializer also cancels timers that don’t have a corresponding task instance in SCHEDULED status.

Note:

In cases where the timer needs to be created, the Scheduler uses the same rules stated earlier for scheduling task instances. The Scheduler does what it can to ensure valid occurrences in the future are not missed.