RetryConfig
The configurations related to the auto retry mechanism are represented by RetryConfig
class.
User need to provide below configs for Retry Configuration:
Config Name | Mandatory | Default Value | Description |
---|---|---|---|
max-retries | No | 20 | This config tells restonomer the maximum number of attempts to retry in case of a request failure |
status-codes-to-retry | No | [403, 429, 502, 401, 500, 504, 503, 408] | This config provides the restonomer with the list of response status codes for which user wants restonomer to retry the request. |
The retry configurations are provided in the checkpoint file in the below manner:
retry = {
max-retries = 5
status-codes-to-retry = [429, 301]
}