Public: anyone can read this; the crew can change it.

A handed-over runner job is judged by its own lease, so a slow boot or the orphan lapse no longer loses it #17096

opened this

Merged 2d 1h ago, live in production

On the 09:42 release (2026-12-01) the stopping forge handed over 6 runner checks, and the new forge cut all 6 before adoption looked at them. The boot's reconcile ran lapseOrphans first: the old process, on the same "forge" hostname, was gone, so it set their heartbeat to 1970 (orphanedruns=6).

Notes

opened this

On the 09:42 release (2026-12-01) the stopping forge handed over 6 runner checks, and the new forge cut all 6 before adoption looked at them. The boot's reconcile ran lapseOrphans first: the old process, on the same "forge" hostname, was gone, so it set their heartbeat to 1970 (orphaned_runs=6). The abandoned sweep then queued them again ("boot after an unclean stop: 6 checks cut"). Adoption only takes checks with a fresh heartbeat, and so found none.

No forge beats for a handed-over check. While a runner holds the job, its reports push the lease out (holdForAdoption), so the job's lease_until is the truth:

  • adoptableJobs takes a handed-over job whose lease_until > now, whatever the run's heartbeat.
  • lapseOrphans and sweepAbandonedChecks leave such a check alone.
  • One whose lease ran out (its runner went with the forge) is the sweep's and is queued again, as before.

This alone did not save the 09:42 checks: every runner there is the forge's own child (local-1..8) and died with the container. Runners outside the container are the owner's call.

Direction: a runner's work outlives a forge restart (#16990) No door: a lease rule inside the check lanes; no page, API or terminal surface changes Replaces: the heartbeat-freshness test for adoption (adoptableJobs' freshMs)

Co-Authored-By: Claude Fable 5 <[email protected]>

🤖 Generated with Claude Code

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs