Skip to content

feat: configure WebSocket worker delivery timeout - #106

Merged
argilzar merged 1 commit into
mainfrom
fix/configurable-worker-delivery-timeout
Oct 30, 2026
Merged

argilzar merged 1 commit into
mainfrom
fix/configurable-worker-delivery-timeout

Conversation

@argilzar

Copy link
Copy Markdown
Member

A throttled worker can legitimately wait longer than the cluster's hardcoded 30-second WebSocket acknowledgement deadline. In ONE MQTT catch-up, the rolling limiter can wait up to 60 seconds even though the source reservation is configured for 90 seconds; changing the source timeout does not change the worker tracker.

Add optional workerDeliveryTimeoutMs to FlowcoreDataPumpCluster, preserving the 30-second default. Validate integer timer bounds before creating cluster state. The option affects only the WebSocket acknowledgement tracker; NATS, source reservation behavior and retry/late-ACK semantics stay unchanged. Document processing budget, source reservation margin, and the fact that expiry cannot cancel worker side effects.

Validation: baseline implementation fails 7 of the new regression cases; the corrected focused suite passes 10 tests. Full suite: 166 tests / 569 assertions passed. Lint, typecheck, formatting and JS/declaration build passed with Bun 1.4.2 locally; hosted CI pins 1.3.14. Independent spec/safety review found no blockers. Integration infrastructure tests remain for hosted CI.

This library PR alone changes no production configuration. Release/consumer wiring and synthetic backlog qualification are required before ONE main cutover.

@argilzar
argilzar merged commit 34271ea into main Oct 30, 2026
2 checks passed
@argilzar
argilzar deleted the fix/configurable-worker-delivery-timeout branch October 30, 2026 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant