From dad1f42c110d9e3f5ed9c46d0166ed89dd7484a4 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Wed, 19 Jun 2024 10:38:43 +0200 Subject: [PATCH] Add timeout to publishing on AliEn --- publish/aliPublishS3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/publish/aliPublishS3 b/publish/aliPublishS3 index d9489e40..ed6821e6 100755 --- a/publish/aliPublishS3 +++ b/publish/aliPublishS3 @@ -268,7 +268,7 @@ class AliEn: self._session.get("https://alimonitor.cern.ch/packages/define.jsp", # Set stream=False to read the response body and # release the connection back to the pool. - params=request_data, stream=False) \ + params=request_data, stream=False, timeout=30) \ .raise_for_status() except requests.HTTPError as exc: error("AliEn: failed to register new package", exc_info=exc)