Hub 2.3.1: a server running a job is busy, not down

An agent before 1.1.1 neither polls nor sends stats while it runs a job,
so after 5 minutes the Hub alerted (and emailed) that it was down. While
a job it handed out is within its time limit, the server counts as busy:
no agent_silent alert, online for New install, "Running a job" in the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-18 19:02:49 +02:00
co-authored by Claude Opus 5.5
parent da219c15d4
commit 5a2aec7a67
13 changed files with 76 additions and 21 deletions
+3 -1
View File
@@ -7,7 +7,7 @@ import { fmtDate } from "@/lib/format";
export type ServerSummary = {
id: string; name: string; mode: "church" | "central"; hostname: string | null; agentVersion: string | null;
lastSeenAt: string | null; joinedAt: string; removedAt: string | null; notes: string | null; online: boolean;
lastSeenAt: string | null; joinedAt: string; removedAt: string | null; notes: string | null; online: boolean; busy?: boolean;
ram: { totalBytes: number; availableBytes: number; usedPercent: number } | null;
cpu: { percent: number; load1: number; cores: number } | null;
disk: { mount: string; totalBytes: number; usedBytes: number; freeBytes: number }[];
@@ -47,6 +47,8 @@ const STATUS: Record<string, [string, string]> = {
// deployments
installing: ["Installing", "blue"], waiting_for_proxy: ["Waiting for proxy", "amber"], live: ["Live", "green"], failed: ["Failed", "red"],
uninstalling: ["Uninstalling", "amber"], removed: ["Removed", "grey"],
// servers: busy = running a job the Hub handed it (agents before 1.1.1 go quiet then)
busy: ["Running a job", "blue"],
// jobs
scheduled: ["Waiting its turn", "grey"], queued: ["Due", "blue"], delivered: ["Running", "blue"], succeeded: ["Succeeded", "green"],
rolled_back: ["Rolled back", "amber"], refused: ["Refused", "red"], expired: ["Expired", "red"], missed: ["Missed", "red"], cancelled: ["Cancelled", "grey"],