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.
Properties
Section titled “Properties”statuses?
Section titled “statuses?”
optionalstatuses?:number[]
Defined in: src/core/types.ts:225
Statuses whose Retry-After pauses the partition.
Default
Section titled “Default”DEFAULT_PAUSE_STATUSES (429 and 503)
maxPauseMs?
Section titled “maxPauseMs?”
optionalmaxPauseMs?: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.
