Skip to content

RetryOption

Configuration options for the retry mechanism.

optional baseDelay: number

The base delay (in milliseconds) for exponential backoff. Defaults to 500 ms if not specified.


optional maxDelay: number

The maximum delay (in milliseconds) between retry attempts. Defaults to 30000 ms (30 seconds).


optional maxRetry: number

The maximum number of retry attempts before giving up. Defaults to 3 if not specified.


optional timeout: number

The timeout (in milliseconds) for each operation attempt. If the operation does not complete within this time, it will be aborted. Defaults to 5000 ms (5 seconds). Set to 0 to disable timeout.