diff options
author | 2022-08-12 22:56:51 +0200 | |
---|---|---|
committer | 2022-08-12 22:56:51 +0200 | |
commit | 3335cc6c710f028e0e2303a7fa9dae5bd4220d6e (patch) | |
tree | fb84484d575671bb55654ffe57d4923b5ec0ed15 /static-builds | |
parent | Bump Deadline For GitHub Artifacts Route (diff) |
Increase Timeout For Artifact Download
Sets the timeout of downloads to 3 minutes (from a default of 5 seconds)
since some artifacts can be quite large.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'static-builds')
-rw-r--r-- | static-builds/netlify_build.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static-builds/netlify_build.py b/static-builds/netlify_build.py index 7143a19a..f3a53f72 100644 --- a/static-builds/netlify_build.py +++ b/static-builds/netlify_build.py @@ -52,7 +52,7 @@ if __name__ == "__main__": raise_response(response) url = response.json()["url"] print(f"Downloading build from {url}") - zipped_content = httpx.get(url, follow_redirects=True) + zipped_content = httpx.get(url, follow_redirects=True, timeout=3 * 60) zipped_content.raise_for_status() zip_file = Path("temp.zip") |