A queued build that is cancelled is recorded at once (v1.30.3) #98

Merged
mi merged 1 commits from mihoe/cancel-queued-at-once into main 2026-10-03 16:37:33 +02:00
Owner

Follow-up of #95: the × of a queued build set only a flag, and the row stayed pending until the build ahead of it finished (hours behind a mutation build); a restart in between re-ran it.

  • cancel decides under the build lock: a queued build is recorded CANCELLED at once and leaves the active builds; a running one is killed as before.
  • execute skips a build cancelled in the queue, before and after waiting for a slot.

Version: v1.30.3, because #97 (open) also claims v1.30.2.

PR-doc: docs/prs/2026-10-03-PR#98-cancel-queued-build-at-once.md

🤖 Generated with Claude Code

Follow-up of #95: the × of a queued build set only a flag, and the row stayed pending until the build ahead of it finished (hours behind a mutation build); a restart in between re-ran it. - `cancel` decides under the build lock: a queued build is recorded CANCELLED at once and leaves the active builds; a running one is killed as before. - `execute` skips a build cancelled in the queue, before and after waiting for a slot. Version: v1.30.3, because #97 (open) also claims v1.30.2. PR-doc: `docs/prs/2026-10-03-PR#98-cancel-queued-build-at-once.md` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
mi added 1 commit 2026-10-03 16:31:57 +02:00
cancel() only set a flag; the result became CANCELLED when the branch's
worker reached the build, which behind a mutation build took hours, and a
restart in between re-ran it. A queued build is now recorded as CANCELLED
under the build's lock and leaves the active builds; its worker skips it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mi merged commit 809847ff61 into main 2026-10-03 16:37:33 +02:00
mi deleted branch mihoe/cancel-queued-at-once 2026-10-03 16:37:33 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkator#98