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:
@@ -99,7 +99,7 @@ export default function InstallsPage() {
|
||||
<label key={s.id} className={`flex cursor-pointer gap-2 rounded-lg border p-3 text-sm ${form.serverId === s.id ? "border-indigo-500 bg-indigo-50" : "border-slate-200"}`}>
|
||||
<input type="radio" name="server" value={s.id} checked={form.serverId === s.id} onChange={() => setForm({ ...form, serverId: s.id })} disabled={!s.online} />
|
||||
<span>
|
||||
<span className="font-medium">{s.name}</span> <StatusPill status={s.online ? "online" : "offline"} />
|
||||
<span className="font-medium">{s.name}</span> <StatusPill status={s.busy ? "busy" : s.online ? "online" : "offline"} />
|
||||
<span className="block text-xs text-slate-500">RAM free {s.ram ? `${(s.ram.availableBytes / 1024 ** 3).toFixed(1)} GB` : "?"} · CPU day avg {pct(s.lastDay?.cpuAvg)} · disk {pct(s.disk.reduce((m, d) => Math.max(m, d.totalBytes ? (d.usedBytes / d.totalBytes) * 100 : 0), 0))} · {s.deployments ?? 0} site(s)</span>
|
||||
{low && <span className="block text-xs font-medium text-amber-800">Not recommended: under 1.5 GB RAM free</span>}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user