RetryConfig
in package
Retry configuration constants matching the Python SDK.
Table of Contents
Constants
- MAX_RETRY_ATTEMPTS = 3
- Maximum number of retry attempts.
- MAX_RETRY_BACKOFF = 5.0
- Maximum backoff time in seconds.
- MIN_RETRY_BACKOFF = 0.5
- Minimum backoff time in seconds.
- RETRY_BACKOFF = 0.5
- Exponential backoff multiplier.
Methods
- isRetryableStatusCode() : bool
- Check if a status code is retryable (status code > 500).
Constants
MAX_RETRY_ATTEMPTS
Maximum number of retry attempts.
public
mixed
MAX_RETRY_ATTEMPTS
= 3
MAX_RETRY_BACKOFF
Maximum backoff time in seconds.
public
mixed
MAX_RETRY_BACKOFF
= 5.0
MIN_RETRY_BACKOFF
Minimum backoff time in seconds.
public
mixed
MIN_RETRY_BACKOFF
= 0.5
RETRY_BACKOFF
Exponential backoff multiplier.
public
mixed
RETRY_BACKOFF
= 0.5
Methods
isRetryableStatusCode()
Check if a status code is retryable (status code > 500).
public
static isRetryableStatusCode(int $statusCode) : bool
Parameters
- $statusCode : int
-
The HTTP status code.
Return values
bool —True if the status code is retryable.