Skip to content

Let new website publishes replace stalled runs - #2142

Merged
max-sixty merged 2 commits into
mainfrom
codex/publish-queue-recovery
Oct 9, 2026
Merged

max-sixty merged 2 commits into
mainfrom
codex/publish-queue-recovery

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

A publish run from October 6 stayed queued without a runner until it was canceled on October 9. The workflow's cancel-in-progress: false kept it in the deployment concurrency group while newer publish runs waited behind it. Those runs could not start and fail normally.

Set cancel-in-progress: true so the next publish replaces an older run in that group. This is GitHub's documented concurrency behavior. A push can also interrupt a deployment already executing; the replacing run then deploys current main. No separate recovery workflow is needed.

Verified the final PR diff contains only this workflow setting, parsed the YAML, and ran git diff --check. All PR checks passed on 436a18c4390c616cbd5e43db4b973252c0335c53.

leaf-agent
leaf-agent previously approved these changes Oct 9, 2026
@max-sixty

Copy link
Copy Markdown
Owner Author

wait this is totally overcomplicated, 10x.

why did it block? why can't we just deploy like a normal deployment? if it fails, we deploy the next time normally??

The earlier recovery workflow was more machinery than this queue needs. GitHub held a publish from October 6 in the workflow concurrency group before a runner was assigned; with cancel-in-progress false, newer pushes could replace only the pending successor and never start. Set cancel-in-progress true so the next publish cancels the old owner and runs normally. An interrupted deploy may leave a release needing the next publish, which is the accepted tradeoff for keeping the site moving.
@leaf-agent leaf-agent changed the title Recover website publishes stalled before runner allocation Let new website publishes replace stalled runs Oct 9, 2026
@leaf-agent

Copy link
Copy Markdown
Collaborator

It blocked because the October 6 publish run stayed queued without a runner while holding the workflow's concurrency slot. With cancel-in-progress: false, later pushes replaced the waiting successor, but could not cancel that slot holder. Its job never ran, so it could not fail or reach its timeout.

I reduced #2142 to one setting: cancel-in-progress: true. GitHub's concurrency rules then let the next publish cancel the old run and deploy normally. It can also interrupt a deployment already underway; the replacing run deploys current main. The recovery workflow, script, and tests are gone. The broad CI test is still running on the revised head.

@max-sixty
max-sixty merged commit ea3d4d6 into main Oct 9, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/publish-queue-recovery branch October 9, 2026 08:26
leaf-agent added a commit that referenced this pull request Oct 9, 2026
The deployed agent journey crashed after a successful revision and reply
because its title wait read threads at the top level of /api/state. The
server places that projection under browser.thread. Read the canonical
served shape and correct the title and reload fixtures that masked the
mismatch.

Publish run 37896111120 deployed and reached the exact release before
the journey failed with KeyError: 'thread'. The separate deployment-lock
change is PR #2142.

Validation: both affected reload tests reproduced KeyError: 'browser'
before their fixture corrections. All four focused title/reload/offline
tests now pass; changed-file pre-commit checks and independent review
pass. The production journey remains the end-to-end deployment gate.

> _This was written by Codex on behalf of max-sixty_

---------

Co-authored-by: leaf-agent <[email protected]>
Co-authored-by: Maximilian Roos <[email protected]>
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