Symptom
A cron job is stored as failed Interrupted by shutdown before terminal completion. The work itself finished. The log shows Timed out waiting for local fire fence and fire claim ownership lost; interrupting stale run.
Evidence what you'll see
- The report's production line is
ERROR cron.jobs: Timed out waiting for local fire fenceabout 90 seconds after the run starts, thenWARNING cron.scheduler: Job '<job_id>': fire claim ownership lost; interrupting stale run. - Delivery to Bot Chat of profile
defaultcompleted after that warning. The author later measured oneprint()job at 0 seconds with--deliver localand about 40 seconds with--deliver bot-chat:default.
Why it happens
The run thread holds the per-job fire fence across _deliver_result(). The 60-second heartbeat calls heartbeat_fire_claim through that same fence, blocks for _JOBS_LOCK_TIMEOUT_SECONDS (30 seconds), and returns false. The scheduler reads the false as a lost claim and writes the shutdown line. Pull request 109310 refreshes the claim under _jobs_lock only. A real takeover still returns false when claim["by"] no longer matches.
Affected versions
Hermes v0.21.0 at commit 18a76be12. macOS 15 (Darwin 25.6.0), arm64, Python 3.11.16, git install, gateway supervised by launchd. The jobs that failed use --deliver bot-chat. The author corrected the report: a 115-second job with --deliver local did not reproduce it.
Fix steps
0 of 2 done
Your check marks stay in this browser only.
How to check it worked
- While another thread holds
fire_claim_fence,heartbeat_fire_claimfor the current owner returns true, and a heartbeat for a foreign owner returns false. A delivery that used to be stored asInterrupted by shutdown before terminal completion.is recorded as succeeded.
If it still fails
- A comment on 10 Sep 2026 says the same ledger string also covers a real delivery failure, so
last_statusalone cannot separate a false failure from a failed delivery. Compare the execution row with the delivery row. - The linked issue does not describe a remaining failure after pull request 109310. The closing comment says the competing pull requests were closed when 109310 merged.
Sources and credit
Summarized in our own words from these public reports. Credit goes to their authors.
Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change
Hit an error we don't cover? Submit it