Relax freshness limits and tolerate transient RCON failures
This commit is contained in:
@@ -6,7 +6,7 @@ const STALE_MAX_MS = 120_000;
|
||||
/**
|
||||
* Classify server health from its last successful RCON timestamp.
|
||||
* `offline` if we've never seen it or the last successful reply is >120s old.
|
||||
* `stale` on an RCON failure or if the last reply is 45-120s old.
|
||||
* `stale` on a blocking RCON failure or if the last reply is >90-120s old.
|
||||
* `online` if fresh, including the allowance for polling and delivery.
|
||||
*/
|
||||
export function classifyHealth(lastSeenAt: string | null, lastError: string | null, containerState?: string | null): Health {
|
||||
|
||||
Reference in New Issue
Block a user