Skip to content

Commit a0b6970

Browse files
committed
Bump dataset file download timeout to 60 seconds
This should help slightly with timeout issues we see in production
1 parent 377a8c4 commit a0b6970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dcd_mapping/resource_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def http_download(url: str, out_path: Path, silent: bool = True) -> Path:
3939
if not silent:
4040
click.echo(f"Downloading {out_path.name} to {out_path.parents[0].absolute()}")
4141
with requests.get(
42-
url, stream=True, timeout=30, headers=authentication_header()
42+
url, stream=True, timeout=60, headers=authentication_header()
4343
) as r:
4444
r.raise_for_status()
4545
total_size = int(r.headers.get("content-length", 0))

0 commit comments

Comments
 (0)