Skip to content

Commit

Permalink
retry gitlab requests on Socket::ConnectError
Browse files Browse the repository at this point in the history
  • Loading branch information
mamantoha committed Dec 4, 2024
1 parent bf2b68c commit 192c906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/gitlab/api.cr
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module Gitlab
end

def make_request(url : String, params = {} of String => String)
Retriable.retry(on: {Crest::InternalServerError, Crest::ServiceUnavailable, Crest::BadGateway}) do
Retriable.retry(on: {Crest::InternalServerError, Crest::ServiceUnavailable, Crest::BadGateway, Socket::ConnectError}) do
client[url].get(params: params)
end
ensure
Expand Down

0 comments on commit 192c906

Please sign in to comment.