pub const MAX_RESTART_ATTEMPTS: u32 = 5;Expand description
Maximum number of consecutive restart attempts before the supervisor gives up.
Consecutive failures are counted only within the RESTART_GRACE window: a
process that runs past grace resets the counter, so a slow leak (e.g. crashes
once an hour) never exhausts the budget. Only a tight crash-loop does.