Skip to content
ID

Schedules

MF-AutoRestart combines two schedule sources:

  • static schedules from config.yml;
  • persistent dynamic schedules stored in SQLite.

Both use settings.timezone.

Static configuration supports:

DAILY:HH:mm
WEEKLY:DAY:HH:mm

Examples:

DAILY:07:00
WEEKLY:SUNDAY:12:00

DAY 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 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 1

Only 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.

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.

/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.