Skip to content

Commit

Permalink
Change to use exceptions to retry
Browse files Browse the repository at this point in the history
  • Loading branch information
maratkomarov committed Apr 23, 2024
1 parent f54f33a commit d00e977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog_backup/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Resources
interval_randomness: 0.5,
backoff_factor: 2,
rate_limit_reset_header: 'x-ratelimit-reset',
retry_statuses: [429]
exceptions: [Faraday::TooManyRequestsError] + Faraday::Retry::Middleware::DEFAULT_EXCEPTIONS
}.freeze

def backup
Expand Down

0 comments on commit d00e977

Please sign in to comment.