View Source Prestige.Middleware.Retry (prestige v3.0.0)
Tesla plug that will retry the http request when an error or 503 status code is returned. Will retry for a configurable amount of time
Options:
* `:max_retries` - Override amount of retry attempts (default: 5)
* `:delay` - Delay between requests in milliseconds (default: 1000ms)
examples
Examples
`plug(Prestige.Middleware.Retry, delay: 100, max_retries: 5)`
Link to this section Summary
Functions
Callback implementation for Tesla.Middleware.call/3
.
Link to this section Functions
Callback implementation for Tesla.Middleware.call/3
.