Skip to content

Commit

Permalink
Add timeout to publishing on AliEn
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf committed Jun 19, 2024
1 parent 6c9991e commit 398f8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion publish/aliPublishS3
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 398f8e6

Please sign in to comment.