RetryOption
Configuration options for the retry mechanism.
Properties
Section titled “Properties”baseDelay?
Section titled “baseDelay?”
optional
baseDelay:number
The base delay (in milliseconds) for exponential backoff.
Defaults to 500
ms if not specified.
maxDelay?
Section titled “maxDelay?”
optional
maxDelay:number
The maximum delay (in milliseconds) between retry attempts.
Defaults to 30000
ms (30 seconds).
maxRetry?
Section titled “maxRetry?”
optional
maxRetry:number
The maximum number of retry attempts before giving up.
Defaults to 3
if not specified.
timeout?
Section titled “timeout?”
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.