Skip to content

Commit 3335cc6

Browse files
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]>
1 parent 79fee14 commit 3335cc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

static-builds/netlify_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def raise_response(response: httpx.Response) -> None:
5252
raise_response(response)
5353
url = response.json()["url"]
5454
print(f"Downloading build from {url}")
55-
zipped_content = httpx.get(url, follow_redirects=True)
55+
zipped_content = httpx.get(url, follow_redirects=True, timeout=3 * 60)
5656
zipped_content.raise_for_status()
5757

5858
zip_file = Path("temp.zip")

0 commit comments

Comments
 (0)