-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgepriority:p2Priority P2 (medium)Priority P2 (medium)
Milestone
Description
Problem
waitForAvailableWorker() uses a hard-coded 5s timeout. When the pool is saturated and legitimate requests run longer than 5s, callers fail with Timeout waiting for available worker even though timeoutMs is higher. This produces false negatives and inconsistent timeout behavior.
Evidence
src/runtime/optimized-node.ts:waitForAvailableWorker(timeoutMs: number = 5000)has a fixed default unrelated tooptions.timeoutMs.
Acceptance criteria
- Make queue wait timeout configurable (e.g.,
queueWaitTimeoutMs) or default it tooptions.timeoutMs. - Document how queue wait timeout interacts with per-call
timeoutMs. - Add a test that simulates pool saturation with a long-running call and ensures the queue wait does not fail early by default.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:runtime-nodeArea: Node runtime bridgeArea: Node runtime bridgepriority:p2Priority P2 (medium)Priority P2 (medium)