fix(worker-bus): make priority scheduler authoritative - #307
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in:26 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
Comment |
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
|
| Overall Grade | Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Docker | Aug 1, 2026 3:22p.m. | Review ↗ | |
| JavaScript | Aug 1, 2026 3:22p.m. | Review ↗ | |
| Python | Aug 1, 2026 3:22p.m. | Review ↗ | |
| Rust | Aug 1, 2026 3:22p.m. | Review ↗ | |
| Shell | Aug 1, 2026 3:22p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Pull request overview
Makes WorkerBus’s bounded priority scheduler authoritative and replaces pool polling with event-driven dispatch.
Changes:
- Adds priority/FIFO scheduling with bounded critical-task reserve.
- Adds enqueue-to-completion inactivity watchdogs and centralized cleanup.
- Expands regression tests and updates architecture documentation.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
packages/worker-bus/src/workerBus.ts | Implements scheduler-driven dispatch and watchdog lifecycle. |
packages/worker-bus/src/workerPool.ts | Adds non-blocking acquisition and availability notifications. |
packages/worker-bus/src/taskQueue.ts | Adds runnable-task selection and critical reserve. |
packages/worker-bus/src/progressEmitter.ts | Adds task progress cleanup. |
packages/worker-bus/src/types.ts | Documents timeout semantics and adds saturation event. |
packages/worker-bus/tests/workerBus.test.ts | Tests scheduling, saturation, cleanup, and timeouts. |
packages/worker-bus/tests/workerPool.test.ts | Tests event-driven worker availability. |
packages/worker-bus/tests/taskQueue.test.ts | Tests reserve limits and runnable selection. |
docs/adr/0015-worker-generation-consolidation.md | Records scheduler follow-up resolution. |
README.md | Updates WorkerBus feature description. |
TODO.md | Records completed scheduler hotfix. |
AUDIT.md | Updates release and audit status. |
AGENTS.md | Updates agent architecture guidance. |
CLAUDE.md | Updates WorkerBus guidance and removes resolved debt. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:ddbdef834b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
qnbs
commented
Aug 1, 2026
@CodeAnt-AI review\n@coderabbitai review |
✅ Action performedReview finished.
|
Question: review\n@coderabbitai review Answer: Review findings[P1] Completed progress streams can remain pending forever
complete(taskId: string): void{this.listeners.delete(taskId);}However, constnext=handle.progress[Symbol.asyncIterator]().next();// task completesawaitnext;// remains pendingThis is especially problematic because
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
qnbs
commented
Aug 1, 2026
@CodeAnt-AI review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:31dffbf143
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
qnbs
commented
Aug 1, 2026
@CodeAnt-AI review |
qnbs
commented
Aug 1, 2026
@CodeAnt-AI review |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Verification
Local environment note
The npm exec lint-staged wrapper hung on the constrained workstation. Its underlying Biome command was run directly and passed before the commit; the commit therefore used --no-verify.