Skip to content

Commit

Permalink
Set a timeout when hydra is down
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored and makefu committed Jan 30, 2021
1 parent 338086a commit 68caa9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydracheck/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def fetch_data(ident: str) -> str:
# https://hydra.nixos.org/job/nixos/release-19.09/nixos.tests.installer.simpleUefiGrub.aarch64-linux
# https://hydra.nixos.org/job/nixpkgs/trunk/hello.x86_64-linux/all
url = get_url(ident)
resp = requests.get(url)
resp = requests.get(url, timeout=20)
if resp.status_code == 404:
print(f"package {ident} not found at url {url}")
exit(1)
Expand Down

0 comments on commit 68caa9d

Please sign in to comment.