Skip to content

PauseOnRetryAfterConfig

Defined in: src/core/types.ts:222

Stops a partition from sending anything after a response that says when to come back. When a response with one of statuses carries a valid Retry-After, no new attempt, first or retry, goes to that partition before the time it names, and attempts that arrive meanwhile wait for it. Without this, a Retry-After only delays the ticket that received it. Opt-in: nothing pauses unless this is configured. A status must also be in retry.retryOnStatus (429 and 503 are, by default) to be seen.

optional statuses?: number[]

Defined in: src/core/types.ts:225

Statuses whose Retry-After pauses the partition.

DEFAULT_PAUSE_STATUSES (429 and 503)


optional maxPauseMs?: number

Defined in: src/core/types.ts:229

Longest pause in ms. A longer Retry-After is clamped to it, so a hostile or buggy header can’t park the partition for hours.

DEFAULT_MAX_PAUSE_MS