Summary
Install the faraday-retry gem to enable retry middleware functionality with Faraday v2.0+.
Background
Starting with Faraday v2.0, the retry middleware was extracted into a separate gem called faraday-retry. This gem needs to be installed separately to use retry functionality.
Tasks
Implementation Details
1. Add to Gemfile
2. Install the gem
3. Usage Example
require 'faraday'
require 'faraday/retry'
conn = Faraday.new do |f|
f.request :retry, max: 3, interval: 0.05, interval_randomness: 0.5, backoff_factor: 2
f.adapter Faraday.default_adapter
end
Acceptance Criteria
References
Summary
Install the
faraday-retrygem to enable retry middleware functionality with Faraday v2.0+.Background
Starting with Faraday v2.0, the retry middleware was extracted into a separate gem called
faraday-retry. This gem needs to be installed separately to use retry functionality.Tasks
faraday-retrygem to Gemfilebundle installto install the gemImplementation Details
1. Add to Gemfile
2. Install the gem
3. Usage Example
Acceptance Criteria
faraday-retrygem is added to the project dependenciesReferences