Repository navigation
Model worker pool admission and failure draining - #274
Merged
DocksDocks merged 3 commits intoNov 30, 2026
Merged
Conversation
A failed worker closes admission. Keep only the lowest-index failure while active tasks drain, including when the reason is undefined. Verified: worker and tidy tests, isolated tidy CLI, check:types, targeted Oxlint and Bun formatting.
Observe settlement without asserting in a deferred rejection handler. A later input error must not replace the earlier undefined reason. Verified: worker and tidy tests, isolated tidy CLI, check:types, targeted Oxlint and Bun formatting.
Release a resolved gate and raise the failure inside the task. An unstarted fixture then cannot emit an unhandled rejection. Verified: worker and tidy tests, isolated tidy CLI, check:types, targeted Oxlint and Bun formatting.
DocksDocks
marked this pull request as ready for review
November 30, 2026 23:50
DocksDocks
deleted the
268-model-the-bounded-worker-pools-failure-drain
branch
November 30, 2026 23:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plan run: #268 Model the bounded worker pool’s failure drain
Pull request: #274. Full CI passed. Reviewed head:
bb9b23bdffba12ff42f186ebf36420074a0b077d. Base:26c90afd43cba7e385f4c52de97855c953630ff2.What changed
runBoundedaccepts new tasks until a worker fails. It then drains active tasks and rejects with the original reason from the lowest failing input index. There is no longer a stop flag, a map of failures, or a final search through every input.undefined, the pool waits for the other worker and preserves that reason even if the other worker also fails.Decisions and corrections
Delegated decisions
Reviews
Plan review passed in round 4. Code review passed in round 3. No findings remain.
Verification
tidy --repo … --reportcommand kept the dirty fixture worktree and measured the seeded cache.bun run check:types, targeted Oxlint, and Bun formatting passed.cb6d96bf3bbce8ee3d75172dd351f64fa8965d5c. Its parents match the reviewed base and head. GitHub accepts the requiredFull CIcheck.Limits and failures
bun run checkcommand locally. Do not count the remote gate as a local run.Kept resources
After merge
Archive #268 and mark its parent row done. A later yolo run on #267 starts the next child.
Checklist
bun run checkpasses locally - the local checks covered the changed code and its callers, not the full suite.bun run check:typespasses.Full CIcheck passes.Closes #268