Skip to content

trackkit / dispatcher/types / RetryOptions

Interface: RetryOptions ​

Defined in: dispatcher/types.ts:216

Retry/backoff configuration for failed requests.

Properties ​

maxAttempts? ​

optional maxAttempts: number

Defined in: dispatcher/types.ts:220

Maximum number of retry attempts for a failed request.


initialDelay? ​

optional initialDelay: number

Defined in: dispatcher/types.ts:225

Initial delay in milliseconds before the first retry.


maxDelay? ​

optional maxDelay: number

Defined in: dispatcher/types.ts:230

Maximum delay in milliseconds between retries.


multiplier? ​

optional multiplier: number

Defined in: dispatcher/types.ts:235

Multiplier for exponential backoff (e.g. 2.0 doubles delay each retry).


jitter? ​

optional jitter: boolean

Defined in: dispatcher/types.ts:240

Add random jitter to retry delays to avoid thundering herd effects.


retryableStatuses? ​

optional retryableStatuses: number[]

Defined in: dispatcher/types.ts:247

HTTP status codes that should trigger a retry.

Example ​

ts
[408, 429, 500, 502, 503, 504]

Released under the MIT License.