Skip to main content

STALE_SECS

Constant STALE_SECS 

Source
pub const STALE_SECS: i64 = 30;
Expand description

How old a heartbeat may be before a reader calls the daemon dead. Six missed beats: long enough to survive a slow filesystem, short enough that a crashed daemon is not still reported as running a task.

The single threshold every reader shares — the web UI’s /api/health and magi doctor both call Reading::running rather than each comparing against their own copy of this number, so a crashed daemon cannot look alive on one screen and dead on another.