Skip to content

Commit

Permalink
fix (RSS): add a timeout to query gocdb
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Dec 20, 2024
1 parent 2c277f1 commit 6889850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DIRAC/Core/LCG/GOCDBClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def getHostnameDowntime(self, hostname, startDate=None, ongoing=False):

try:
response = requests.get(
"https://goc.egi.eu/gocdbpi/public/?method=get_downtime&topentity=" + params, verify=caPath
"https://goc.egi.eu/gocdbpi/public/?method=get_downtime&topentity=" + params, verify=caPath, timeout=20
)
response.raise_for_status()
except requests.exceptions.RequestException as e:
Expand Down

0 comments on commit 6889850

Please sign in to comment.