RetryOptions interface

Options that control how to retry failed requests.

Properties

maxRetries

The maximum number of retry attempts. Defaults to 3.

maxRetryDelayInMs

The maximum delay in milliseconds allowed before retrying an operation. Defaults to 90000 (90 seconds).

mode

Currently supporting only Exponential mode.

retryDelayInMs

The amount of delay in milliseconds between retry attempts. Defaults to 30000 (30 seconds). The delay increases exponentially with each retry up to a maximum specified by maxRetryDelayInMs.

Property Details

maxRetries

The maximum number of retry attempts. Defaults to 3.

maxRetries?: number

Property Value

number

maxRetryDelayInMs

The maximum delay in milliseconds allowed before retrying an operation. Defaults to 90000 (90 seconds).

maxRetryDelayInMs?: number

Property Value

number

mode

Currently supporting only Exponential mode.

mode?: Exponential

Property Value

retryDelayInMs

The amount of delay in milliseconds between retry attempts. Defaults to 30000 (30 seconds). The delay increases exponentially with each retry up to a maximum specified by maxRetryDelayInMs.

retryDelayInMs?: number

Property Value

number