Schedules
MF-AutoRestart combines two schedule sources:
- static schedules from
config.yml; - persistent dynamic schedules stored in SQLite.
Both use settings.timezone.
Schedule Formats
Section titled “Schedule Formats”Static configuration supports:
DAILY:HH:mmWEEKLY:DAY:HH:mmExamples:
DAILY:07:00WEEKLY:SUNDAY:12:00DAY uses English DayOfWeek names: MONDAY through SUNDAY.
The scheduled time is the countdown start time. With the shipped default-countdown: 300, a countdown starting at 07:00 reaches its terminal boundary about five minutes later if it is not cancelled.
Dynamic Schedules
Section titled “Dynamic Schedules”Dynamic schedules are stored in SQLite and receive numeric database IDs.
Examples:
/ar schedule add daily 04:00/ar schedule add weekly SUNDAY 04:00/ar schedule list/ar schedule delete 1Only database-backed dynamic schedules have deletable numeric IDs. Config schedules appear in the list with - instead of a database ID and must be changed in config.yml.
Scheduler Behavior
Section titled “Scheduler Behavior”The schedule checker runs once per second on the server primary thread and checks the interval since the previous check rather than requiring an exact second == 0 hit. This prevents short timing gaps from missing a scheduled minute.
Catch-up is capped at 600 seconds for a large clock/checker gap. When a restart is already in COUNTDOWN or COMMITTED, another schedule does not start a second restart.
Reload Behavior
Section titled “Reload Behavior”/ar reload prepares configuration, language, and the dynamic schedule snapshot without clearing the active runtime state first.
Config and language are committed together after successful preparation. The dynamic schedule snapshot is replaced only if no newer dynamic add/delete completed while reload was in progress; newer schedule changes are preserved.
See Configuration for the full reload contract.