Skip to main content

RetryConfig

The configurations related to the auto retry mechanism are represented by RetryConfig class.

User need to provide below configs for Retry Configuration:

Config NameMandatoryDefault ValueDescription
max-retriesNo20This config tells restonomer the maximum number of attempts to retry in case of a request failure
status-codes-to-retryNo[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]
}