Skip to content

fix(queue): clamp and validate retry-policy backoff overrides#575

Merged
mikewheeleer merged 1 commit into
Talenttrust:mainfrom
Jagadeeshftw:issue-569
Jun 29, 2026
Merged

fix(queue): clamp and validate retry-policy backoff overrides#575
mikewheeleer merged 1 commit into
Talenttrust:mainfrom
Jagadeeshftw:issue-569

Conversation

@Jagadeeshftw

Copy link
Copy Markdown
Contributor

Closes #569.

Clamps env-driven retry-policy backoff overrides in src/queue/retry-policy.ts to safe bounds so no env value can cause an exponential-backoff explosion: multiplier is bounded to [1, 10], delay to [1, 300000]ms, attempts to MAX_RETRY_ATTEMPTS. Out-of-range values are clamped and a warning is logged via the structured logger instead of throwing in the hot path. Adds a coherence guard that drops a multiplier from a fixed backoff, TSDoc on loadRetryPolicyOverrides, tests in retry-policy.test.ts, and bounds docs in docs/configuration.md.

@mikewheeleer

Copy link
Copy Markdown
Contributor

clean diff — shipping it 🚀

@mikewheeleer
mikewheeleer merged commit dbfcf11 into Talenttrust:main Jun 29, 2026
3 of 5 checks passed
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.

Clamp retry-policy backoff multiplier overrides to a safe upper bound

2 participants