Skip to content

Restarter: skip user/concurrency cancellations, request restarts on unregister - #73

Merged
AndWeHaveAPlan merged 2 commits into
mainfrom
fix-restart-preemption-cancelled-runs
Sep 11, 2026
Merged

Restarter: skip user/concurrency cancellations, request restarts on unregister#73
AndWeHaveAPlan merged 2 commits into
mainfrom
fix-restart-preemption-cancelled-runs

Conversation

@AndWeHaveAPlan

Copy link
Copy Markdown
Collaborator
  • Cancelled runs are restarted unless a job annotation shows a person or a concurrency group cancelled them (needs GitHub App "Checks: read"; 403 fails open)
  • /agent/interrupt ignores trays without a job: idle preempted trays were creating run-id-0 requests that hit GitHub with a 404 every 30s for 6h
  • Unregister with reason Preempted or SigTerm requests the restart itself, before the tray is deleted. Covers the case where the VM's shutdown handler loses the race with systemd and never posts the interrupt

@AndWeHaveAPlan
AndWeHaveAPlan merged commit 80327d8 into main Sep 11, 2026
8 checks passed
@AndWeHaveAPlan
AndWeHaveAPlan deleted the fix-restart-preemption-cancelled-runs branch September 11, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants