Skip to content

The agent that grows with you

fix(cron): label overdue next runs in cron list, dashboard and Desktop; one parser for the instant

teknium1eddf7283e4b1
diff --git a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx
index b8feea24164..2e6575f43c0 100644
--- a/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx
+++ b/apps/desktop/src/app/chat/sidebar/cron-jobs-section.tsx
@@ -20,7 +20,7 @@ import { notify, notifyError } from '@/store/notifications'
import { $selectedStoredSessionId } from '@/store/session'
import type { CronJob } from '@/types/hermes'
-import { jobState, jobTitle, STATE_DOT } from '../../cron/job-state'
+import { jobState, jobTitle, nextRunOverdueMs, STATE_DOT } from '../../cron/job-state'
import { SidebarPanelLabel } from '../../shell/sidebar-label'
import { SidebarRowBody, SidebarRowLabel, SidebarRowLead, SidebarRowShell } from './chrome'
@@ -244,7 +244,13 @@ function CronJobSidebarRow({
const label = jobTitle(job)
const isPaused = state === 'paused'
- const meta = INACTIVE_STATES.has(state) ? (c.states[state] ?? state) : next !== null ? relativeTime(next, nowMs) : '—'
+ const overdue = nextRunOverdueMs(job, nowMs) !== null
+
+ const meta = INACTIVE_STATES.has(state)
+ ? (c.states[state] ?? state)
+ : next !== null
+ ? `${overdue ? `${c.overdueSince.replace(/:$/, '')} ` : ''}${relativeTime(next, nowMs)}`
+ : '—'
// Pause/resume and delete aren't threaded through the sidebar's prop chain, so
// drive them against the shared $cronJobs atom directly (same path the cron
diff --git a/apps/desktop/src/app/cron/cron-job-model.test.ts b/apps/desktop/src/app/cron/cron-job-model.test.ts
index c76df80abfe..97af7ac7b9b 100644
--- a/apps/desktop/src/app/cron/cron-job-model.test.ts
+++ b/apps/desktop/src/app/cron/cron-job-model.test.ts
@@ -8,6 +8,7 @@ import {
toggleCronDeliveryTarget,
validateCronEditor
} from './cron-job-model'
+import { nextRunOverdueMs } from './job-state'
describe('jobIsScriptOnly', () => {
it('is true when no_agent is set and a script is present', () => {
@@ -143,3 +144,21 @@ describe('cronEditorUpdates', () => {
expect('provider' in updates).toBe(false)
})
})
+
+describe('nextRunOverdueMs', () => {
+ const now = Date.parse('2026-09-17T20:35:00+04:00')
+
+ it('flags an active job whose stored slot sits past the scheduler grace (#114309)', () => {
+ const job = { enabled: true, next_run_at: '2026-09-17T13:34:18+04:00', state: 'scheduled' }
+
+ expect(nextRunOverdueMs(job, now)).toBe(now - Date.parse(job.next_run_at))
+ })
+
+ it('keeps upcoming, within-grace, paused and unparseable slots as plain next runs', () => {
+ expect(nextRunOverdueMs({ enabled: true, next_run_at: '2026-09-17T21:00:00+04:00' }, now)).toBeNull()
+ expect(nextRunOverdueMs({ enabled: true, next_run_at: '2026-09-17T20:30:00+04:00' }, now)).toBeNull()
+ expect(nextRunOverdueMs({ enabled: true, next_run_at: '2026-09-17T13:34:18+04:00', state: 'paused' }, now)).toBeNull()
+ expect(nextRunOverdueMs({ enabled: false, next_run_at: '2026-09-17T13:34:18+04:00' }, now)).toBeNull()
+ expect(nextRunOverdueMs({ enabled: true, next_run_at: 'not-a-date' }, now)).toBeNull()
+ })
+})
diff --git a/apps/desktop/src/app/cron/index.tsx b/apps/desktop/src/app/cron/index.tsx
index 9bbf2e44ffa..cfd9f9138c6 100644
--- a/apps/desktop/src/app/cron/index.tsx
+++ b/apps/desktop/src/app/cron/index.tsx
@@ -83,7 +83,7 @@ import {
toggleCronDeliveryTarget,
validateCronEditor
} from './cron-job-model'
-import { jobState, jobTitle, STATE_DOT } from './job-state'
+import { jobState, jobTitle, nextRunOverdueMs, STATE_DOT } from './job-state'
const DEFAULT_DELIVER = 'local'
@@ -818,7 +818,10 @@ function CronJobDetail({ busy, c, job, onEdit, onOpenSession, onPauseResume, onT
rows={[
{ label: c.frequencyLabel, value: jobScheduleDisplay(job) },
{ label: c.last.replace(/:$/, ''), value: formatTime(job.last_run_at) },
- { label: c.next.replace(/:$/, ''), value: formatTime(job.next_run_at) },
+ {
+ label: (nextRunOverdueMs(job) === null ? c.next : c.overdueSince).replace(/:$/, ''),
+ value: formatTime(job.next_run_at)
+ },
{ label: c.deliverLabel, value: c.deliveryLabels[deliver] ?? deliver },
...(modelOverride ? [{ label: c.modelLabel, value: modelOverride }] : [])
]}
diff --git a/apps/desktop/src/app/cron/job-state.ts b/apps/desktop/src/app/cron/job-state.ts
index b7dd139cc4e..bf7348f67da 100644
--- a/apps/desktop/src/app/cron/job-state.ts
+++ b/apps/desktop/src/app/cron/job-state.ts
@@ -27,3 +27,28 @@ export function jobTitle(job: CronJob): string {
return pick(job.name) || clip(pick(job.prompt)) || clip(pick(job.script)) || job.id || 'Cron job'
}
+
+// Mirrors hermes_cli/cron.py `_OVERDUE_GRACE_SECONDS`: a busy tick can dispatch a few minutes late.
+export const NEXT_RUN_OVERDUE_GRACE_MS = 15 * 60 * 1000
+
+// Milliseconds a job's stored next_run_at has sat in the past beyond that grace, or null when
+// the slot is upcoming, within grace, unparseable, or the job is not expected to fire. A slot
+// parked in the past is the only user-visible trace of a dead scheduler (#114309), so no
+// surface may present it as an upcoming "Next".
+export function nextRunOverdueMs(job: Pick<CronJob, 'enabled' | 'next_run_at' | 'state'>, nowMs = Date.now()): null | number {
+ const state = jobState(job as CronJob)
+
+ if (state === 'paused' || state === 'completed' || state === 'disabled' || !job.next_run_at) {
+ return null
+ }
+
+ const at = Date.parse(job.next_run_at)
+
+ if (Number.isNaN(at)) {
+ return null
+ }
+
+ const overdue = nowMs - at
+
+ return overdue > NEXT_RUN_OVERDUE_GRACE_MS ? overdue : null
+}
diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.ts
index fcd287befc0..f54b272c541 100644
--- a/apps/desktop/src/i18n/en.ts
+++ b/apps/desktop/src/i18n/en.ts
@@ -2632,6 +2632,8 @@ export const en: Translations = {
emptyTitleSearch: 'No matches',
last: 'Last:',
next: 'Next:',
+ // Replaces `next` when the stored next_run_at is already past the scheduler grace (#114309).
+ overdueSince: 'Overdue since:',
noRuns: 'No runs yet',
manage: 'Manage',
showRuns: 'Show runs',
diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.ts
index 7429e74e960..30c2474084c 100644
--- a/apps/desktop/src/i18n/types.ts
+++ b/apps/desktop/src/i18n/types.ts
@@ -2254,6 +2254,7 @@ export interface Translations {
emptyTitleSearch: string
last: string
next: string
+ overdueSince: string
noRuns: string
manage: string
showRuns: string
diff --git a/hermes_cli/cron.py b/hermes_cli/cron.py
index bb1cc84e1b3..fa459339d2c 100644
--- a/hermes_cli/cron.py
+++ b/hermes_cli/cron.py
@@ -4,7 +4,7 @@ import contextlib
import json
import re
import sys
-from datetime import datetime, timezone
+from datetime import timezone
from pathlib import Path
from typing import Any, Dict, Iterable, List, Optional
@@ -97,19 +97,35 @@ def _dispatch_kind_label(kind) -> Optional[str]:
return {"catch_up": "catch-up after missed fire", "late": "late"}.get(kind)
-def _next_run_overdue_seconds(next_run_at: str) -> Optional[float]:
- """Seconds the timestamp has already been in the past; None if malformed.
+def _next_run_overdue_seconds(next_run_at: Any) -> Optional[float]:
+ """Seconds the stored ``next_run_at`` is already in the past (negative while still
+ upcoming); None when it is not a parseable ISO timestamp.
- next_run_at is written as timezone-aware ISO strings; a naive value only ever comes
- from a hand-edited jobs.json and is read as UTC.
+ Parses through the scheduler's own ``_parse_aware`` so the CLI and the ticker agree on
+ the instant (mixed UTC offsets, DST folds, legacy naive stamps read as system-local).
"""
- try:
- dt = datetime.fromisoformat(str(next_run_at).replace("Z", "+00:00"))
- except ValueError:
+ from cron.jobs import _parse_aware
+ from hermes_time import now
+ dt = _parse_aware(next_run_at)
+ if dt is None:
return None
- if dt.tzinfo is None:
- dt = dt.replace(tzinfo=timezone.utc)
- return (datetime.now(timezone.utc) - dt).total_seconds()
+ # Same-tzinfo subtraction is wall-clock arithmetic in Python; compare instants.
+ return (now().astimezone(timezone.utc) - dt.astimezone(timezone.utc)).total_seconds()
+
+
+def _next_run_row(job: Dict[str, Any]) -> tuple[str, str]:
+ """``("Next run" | "Overdue", value)`` for one job.
+
+ A stamp parked past `cron doctor`'s grace on a job that is supposed to fire is the only
+ user-visible trace of a dead scheduler; never present it as an upcoming run (#114309).
+ """
+ stamp = job.get("next_run_at", "?")
+ overdue_s = _next_run_overdue_seconds(stamp)
+ if (overdue_s is None or overdue_s <= _OVERDUE_GRACE_SECONDS
+ or not job.get("enabled", True) or job.get("state") in {"paused", "completed"}):
+ return ("Next run", stamp)
+ return ("Overdue", color(f"{stamp} ({_format_lateness(overdue_s)} ago — the job has not fired; "
+ "is the scheduler running?)", Colors.YELLOW))
def _dispatch_display(dispatch: dict) -> Optional[str]:
@@ -223,7 +239,7 @@ def _job_rows(job: Dict[str, Any]) -> List[tuple[str, str]]:
("Name", job.get("name", "(unnamed)")),
("Schedule", job.get("schedule_display", job.get("schedule", {}).get("value", "?"))),
("Repeat", f"{repeat_info.get('completed', 0)}/{repeat_times}" if repeat_times else "∞"),
- ("Next run", job.get("next_run_at", "?")),
+ _next_run_row(job),
("Deliver", deliver if isinstance(deliver, str) else ", ".join(deliver)),
] + [(label, value) for label, value in optional if value]
@@ -491,17 +507,14 @@ def _print_active_jobs_summary(jobs) -> None:
if not jobs:
print(" No active jobs")
return
- from datetime import timezone
from cron.jobs import _parse_aware
- next_runs = []
- for job in jobs:
- raw = job.get("next_run_at")
- parsed = _parse_aware(raw)
- if parsed is not None:
- # A shared ZoneInfo compares wall times across a DST fold; use UTC
- # for ordering, but keep the stored timestamp for display.
- next_runs.append((parsed.astimezone(timezone.utc), raw))
+ # Stored stamps carry mixed UTC offsets (an interval job keeps last_run_at's offset, a cron
+ # job its configured zone), so order by instant, never by ISO text; display the stored stamp.
+ # `_parse_aware` hands back one shared ZoneInfo, and Python compares same-tzinfo datetimes
+ # by wall clock (wrong across a DST fold) — normalise to UTC before ordering.
+ next_runs = [(parsed.astimezone(timezone.utc), j["next_run_at"]) for j in jobs
+ if (parsed := _parse_aware(j.get("next_run_at"))) is not None]
print(f" {len(jobs)} active job(s)")
if next_runs:
earliest = min(next_runs, key=lambda run: run[0])[1]
diff --git a/tests/hermes_cli/test_cron.py b/tests/hermes_cli/test_cron.py
index 0df0fe05c9f..15c1104df9e 100644
--- a/tests/hermes_cli/test_cron.py
+++ b/tests/hermes_cli/test_cron.py
@@ -594,8 +594,8 @@ class TestSlashCronListLastStatus:
class TestStatusSurfacesDeadScheduler:
"""#114309 — with the ticker dead and a job's next_run_at stranded in the past, `cron
- status` must not present the stale timestamp as an upcoming "Next run": flag it as
- OVERDUE and say when the scheduler last ticked."""
+ status` / `cron list` must not present the stale timestamp as an upcoming "Next run":
+ flag it as overdue and say when the scheduler last ticked."""
def _dead_gateway(self, monkeypatch):
monkeypatch.setattr("hermes_cli.gateway.find_gateway_pids", lambda: [])
@@ -604,36 +604,30 @@ class TestStatusSurfacesDeadScheduler:
)
monkeypatch.setattr("gateway.status.is_gateway_runtime_lock_active", lambda: False)
+ def _park_next_run(self, job_id, when):
+ jobs = load_jobs()
+ jobs[[j["id"] for j in jobs].index(job_id)]["next_run_at"] = when.isoformat()
+ save_jobs(jobs)
+
def test_overdue_next_run_and_stale_heartbeat_are_loud(
self, tmp_cron_dir, capsys, monkeypatch
):
job = create_job(prompt="Hourly", schedule="every 60m")
self._dead_gateway(monkeypatch)
- overdue = datetime.now(timezone.utc) - timedelta(hours=7)
- jobs = load_jobs()
- jobs[[j["id"] for j in jobs].index(job["id"])]["next_run_at"] = overdue.isoformat()
- save_jobs(jobs)
+ self._park_next_run(job["id"], datetime.now(timezone.utc) - timedelta(hours=7))
(tmp_cron_dir / "cron" / "ticker_heartbeat").write_text(str(time.time() - 25 * 3600))
cron_command(Namespace(cron_command="status"))
+ status_out = capsys.readouterr().out
+ cron_command(Namespace(cron_command="list", all=False, json=False))
+ list_out = capsys.readouterr().out
- out = capsys.readouterr().out
- assert "Gateway is not running" in out
- assert "Scheduler last ticked" in out
- assert "OVERDUE" in out
- # The stale timestamp must no longer read as an upcoming run.
- assert "Next run:" not in out
-
- def test_future_next_run_stays_plain(self, tmp_cron_dir, capsys, monkeypatch):
- create_job(prompt="Hourly", schedule="every 60m")
- self._dead_gateway(monkeypatch)
-
- cron_command(Namespace(cron_command="status"))
-
- out = capsys.readouterr().out
- assert "Next run:" in out
- assert "OVERDUE" not in out
- assert "Scheduler last ticked" not in out
+ assert "Gateway is not running" in status_out
+ assert "Scheduler last ticked" in status_out
+ assert "OVERDUE" in status_out and "7h ago" in status_out
+ # The stale timestamp must no longer read as an upcoming run on either surface.
+ assert "Next run:" not in status_out
+ assert "Overdue:" in list_out and "Next run:" not in list_out
def test_overdue_within_doctor_grace_stays_plain(self, tmp_cron_dir, capsys, monkeypatch):
# status shares `cron doctor`'s 15-minute grace (_OVERDUE_GRACE_SECONDS): a job only
@@ -641,16 +635,16 @@ class TestStatusSurfacesDeadScheduler:
# not flash OVERDUE while doctor calls the same job healthy.
job = create_job(prompt="Hourly", schedule="every 60m")
self._dead_gateway(monkeypatch)
- within_grace = datetime.now(timezone.utc) - timedelta(minutes=5)
- jobs = load_jobs()
- jobs[[j["id"] for j in jobs].index(job["id"])]["next_run_at"] = within_grace.isoformat()
- save_jobs(jobs)
+ self._park_next_run(job["id"], datetime.now(timezone.utc) - timedelta(minutes=5))
cron_command(Namespace(cron_command="status"))
+ status_out = capsys.readouterr().out
+ cron_command(Namespace(cron_command="list", all=False, json=False))
+ list_out = capsys.readouterr().out
- out = capsys.readouterr().out
- assert "Next run:" in out
- assert "OVERDUE" not in out
+ assert "Next run:" in status_out and "OVERDUE" not in status_out
+ assert "Scheduler last ticked" not in status_out # no heartbeat file → nothing to date
+ assert "Next run:" in list_out and "Overdue:" not in list_out
class TestSlashCronRunSkipped:
diff --git a/tests/hermes_cli/test_cron_status_next_run.py b/tests/hermes_cli/test_cron_status_next_run.py
index b73370499ad..4f3e2f76393 100644
--- a/tests/hermes_cli/test_cron_status_next_run.py
+++ b/tests/hermes_cli/test_cron_status_next_run.py
@@ -9,15 +9,22 @@ from cron import jobs as job_store
from hermes_cli.cron import _print_active_jobs_summary
[email protected](autouse=True)
+def _frozen_clock(monkeypatch):
+ # Freeze both the scheduler's clock (normalisation) and the CLI's (overdue check): the
+ # fixtures below are 2026-11 instants and must never start reading as overdue.
+ now = datetime(2026, 10, 31, tzinfo=ZoneInfo("America/New_York"))
+ monkeypatch.setattr(job_store, "_hermes_now", lambda: now)
+ monkeypatch.setattr("hermes_time.now", lambda: now)
+
+
@pytest.mark.parametrize("later,earlier", [
("2026-11-01T01:15:00-05:00", "2026-11-01T01:45:00-04:00"),
("2026-11-02T09:00:00-05:00", "2026-11-02T08:00:00-05:00"),
("2026-11-02T08:00:00-05:00", "2026-11-02T12:30:00+00:00"),
])
-def test_status_earliest_persisted_instant(later, earlier, monkeypatch, capsys):
- # Only freeze the clock: creation, persistence, normalization and listing are real.
- now = datetime(2026, 10, 31, tzinfo=ZoneInfo("America/New_York"))
- monkeypatch.setattr(job_store, "_hermes_now", lambda: now)
+def test_status_earliest_persisted_instant(later, earlier, capsys):
+ # Only the clock is frozen: creation, persistence, normalization and listing are real.
late_job = job_store.create_job(prompt="later", schedule=later)
early_job = job_store.create_job(prompt="earlier", schedule=earlier)
jobs = job_store.list_jobs()
diff --git a/web/src/i18n/en.ts b/web/src/i18n/en.ts
index 159b8f20809..d5e4daeffb9 100644
--- a/web/src/i18n/en.ts
+++ b/web/src/i18n/en.ts
@@ -308,6 +308,8 @@ export const en: Translations = {
noJobs: "No cron jobs configured. Create one above.",
last: "Last",
next: "Next",
+ /** Replaces `next` when the stored next_run_at is already past the scheduler grace. */
+ overdueSince: "Overdue since",
pause: "Pause",
resume: "Resume",
triggerNow: "Trigger now",
diff --git a/web/src/i18n/types.ts b/web/src/i18n/types.ts
index 0346d7a8859..a97b79a21e7 100644
--- a/web/src/i18n/types.ts
+++ b/web/src/i18n/types.ts
@@ -322,6 +322,7 @@ export interface Translations {
noJobs: string;
last: string;
next: string;
+ overdueSince?: string;
pause: string;
resume: string;
triggerNow: string;
diff --git a/web/src/lib/cron-job.test.ts b/web/src/lib/cron-job.test.ts
index 25420d0a3a7..f0d74247142 100644
--- a/web/src/lib/cron-job.test.ts
+++ b/web/src/lib/cron-job.test.ts
@@ -5,6 +5,7 @@ import {
cronJobHasExecutionContent,
cronJobFormFromJob,
cronLastResult,
+ cronNextRunOverdueMs,
splitCronList,
type CronJobFormState,
} from "./cron-job";
@@ -200,3 +201,22 @@ describe("cronLastResult", () => {
).toEqual({ status: "blocked_config", tone: "warning", detail: "missing API key" });
});
});
+
+describe("cronNextRunOverdueMs", () => {
+ const now = Date.parse("2026-09-17T20:35:00+04:00");
+
+ it("flags an active job whose stored slot sits past the scheduler grace (#114309)", () => {
+ const job = { next_run_at: "2026-09-17T13:34:18+04:00", enabled: true, state: "scheduled" };
+ expect(cronNextRunOverdueMs(job, now)).toBe(now - Date.parse(job.next_run_at));
+ });
+
+ it("keeps upcoming, within-grace, paused and unparseable slots as plain next runs", () => {
+ expect(cronNextRunOverdueMs({ next_run_at: "2026-09-17T21:00:00+04:00", enabled: true }, now)).toBeNull();
+ expect(cronNextRunOverdueMs({ next_run_at: "2026-09-17T20:30:00+04:00", enabled: true }, now)).toBeNull();
+ expect(
+ cronNextRunOverdueMs({ next_run_at: "2026-09-17T13:34:18+04:00", enabled: true, state: "paused" }, now),
+ ).toBeNull();
+ expect(cronNextRunOverdueMs({ next_run_at: "2026-09-17T13:34:18+04:00", enabled: false }, now)).toBeNull();
+ expect(cronNextRunOverdueMs({ next_run_at: "not-a-date", enabled: true }, now)).toBeNull();
+ });
+});
diff --git a/web/src/lib/cron-job.ts b/web/src/lib/cron-job.ts
index abcbcd33512..2e9b103f7b6 100644
--- a/web/src/lib/cron-job.ts
+++ b/web/src/lib/cron-job.ts
@@ -148,3 +148,23 @@ export function cronLastResult(
: asString(job.last_error).trim() || asString(job.last_delivery_error).trim();
return { status, tone, detail: detail || null };
}
+
+/** Mirrors hermes_cli/cron.py `_OVERDUE_GRACE_SECONDS`: a busy tick can run a few minutes late. */
+export const CRON_NEXT_RUN_OVERDUE_GRACE_MS = 15 * 60 * 1000;
+
+/**
+ * Milliseconds a job's stored `next_run_at` has sat in the past beyond the doctor grace, or
+ * null when the job is upcoming, within grace, not expected to fire, or has no parseable stamp.
+ * A stamp parked in the past is the only user-visible trace of a dead scheduler (#114309), so
+ * the dashboard must never present it as an upcoming "Next".
+ */
+export function cronNextRunOverdueMs(
+ job: Pick<CronJob, "next_run_at" | "enabled" | "state">,
+ nowMs: number = Date.now(),
+): number | null {
+ if (job.enabled === false || job.state === "paused" || job.state === "completed") return null;
+ const at = Date.parse(asString(job.next_run_at));
+ if (Number.isNaN(at)) return null;
+ const overdue = nowMs - at;
+ return overdue > CRON_NEXT_RUN_OVERDUE_GRACE_MS ? overdue : null;
+}
diff --git a/web/src/pages/CronPage.tsx b/web/src/pages/CronPage.tsx
index 38f64f4661d..6869775bf16 100644
--- a/web/src/pages/CronPage.tsx
+++ b/web/src/pages/CronPage.tsx
@@ -21,6 +21,7 @@ import type {
import {
buildCronJobPayload,
cronJobHasExecutionContent,
+ cronNextRunOverdueMs,
cronJobFormFromJob,
cronLastResult,
focusCronField,
@@ -1181,9 +1182,18 @@ export default function CronPage() {
<span>
{t.cron.last}: {formatTime(job.last_run_at)}
</span>
- <span>
- {t.cron.next}: {formatTime(job.next_run_at)}
- </span>
+ {cronNextRunOverdueMs(job) === null ? (
+ <span>
+ {t.cron.next}: {formatTime(job.next_run_at)}
+ </span>
+ ) : (
+ <span
+ className="text-warning font-medium"
+ data-testid="cron-next-run-overdue"
+ >
+ {t.cron.overdueSince ?? en.cron.overdueSince!}: {formatTime(job.next_run_at)}
+ </span>
+ )}
</div>
{job.last_delivery_error && (
<p className="text-xs text-destructive mt-1">
diff --git a/website/docs/user-guide/features/cron.md b/website/docs/user-guide/features/cron.md
index f4f4aafdd45..b260492397a 100644
--- a/website/docs/user-guide/features/cron.md
+++ b/website/docs/user-guide/features/cron.md
@@ -347,6 +347,8 @@ hermes cron list
hermes cron status
```
+`hermes cron status` reports whether the scheduler is alive (gateway process, ticker heartbeat, last successful tick) and the soonest scheduled run across your active jobs, ordered by actual instant even when jobs store different UTC offsets. A `next_run_at` that is already more than 15 minutes in the past is never shown as an upcoming "Next run": `cron status` prints `⚠ Next run <time> is OVERDUE — passed 7h ago but the job has not fired`, `cron list` labels the row `Overdue:`, the dashboard shows `Overdue since`, and when the gateway is down `status` also says when the scheduler last ticked. That is the signature of a scheduler that stopped ticking — restart the gateway (`hermes gateway restart`) so the next tick picks the overdue job up, or run it right away with `hermes cron run <id>`.
+
For a named profile served by the default-profile multiplexer, `hermes cron status` names that scheduler host and reports the named profile's own heartbeat health. Missing or stale heartbeats point to `hermes --profile default gateway restart`. `cron list` and `cron create` also warn when that heartbeat is missing or stale; `cron status` additionally checks the last successful tick and reports tick errors.
### Gateway scheduler behavior