Skip to content

Commit

Permalink
Adding retries to registry client
Browse files Browse the repository at this point in the history
  • Loading branch information
robaiken committed Dec 3, 2024
1 parent 586a956 commit 65b46ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/lib/dependabot/registry_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def self.get(url:, headers: {}, options: {})
Excon.get(
url,
idempotent: true,
**SharedHelpers.excon_defaults({ headers: headers }.merge(options))
**SharedHelpers.excon_defaults({ headers: headers }.merge(options)),
retry_limit: 3,
retry_interval: 5
)
rescue Excon::Error::Timeout => e
cache_error(url, e)
Expand Down

0 comments on commit 65b46ab

Please sign in to comment.