From 192c9062107440339fa17fb45150bed9c55d82a3 Mon Sep 17 00:00:00 2001 From: Anton Maminov Date: Wed, 4 Dec 2024 13:43:46 +0200 Subject: [PATCH] retry gitlab requests on Socket::ConnectError --- src/lib/gitlab/api.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gitlab/api.cr b/src/lib/gitlab/api.cr index dab8451a..f0e2f054 100644 --- a/src/lib/gitlab/api.cr +++ b/src/lib/gitlab/api.cr @@ -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