fix(worker): resolve busy-loop and add dynamic auto-scaling #354
No reviewers
Labels
No labels
auto-merged
ci
failed
component
api
good first issue
has-pr
help wanted
idea
priority
critical
priority
high
priority
low
priority
medium
review
approved
review
commented
status
blocked
status
in-progress
status
needs-review
status
ready
type
bug
type
chore
type
docs
type
enhancement
type
feature
type
refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
customable/claude-mem!354
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/worker-busy-loop-and-autoscale"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
handleTaskErrorin worker-hub now handles "Worker busy" rejections by setting a__busy__sentinel instead of clearingcurrentTaskId, preventing the infinite retry loop that caused 500+ failed tasksisDispatchingflag prevents overlapping asyncdispatchPendingTasks()callsmaybeScaleUpWorkers()spawns additional workers when all are busy (throttled to every 10s, respects MAX_WORKERS)Test plan
pnpm build)AI Code Review (Devstral)
Fixes busy-loop bug and adds dynamic worker auto-scaling with CSP fix
Automated review by pr-reviewer