Skip to content

Commit

Permalink
dockerLoad: 1 minute max time to connect; first byte
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Mar 25, 2023
1 parent c3ae1f3 commit 86f96a4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion cwltool/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ def __init__(
cwlVersion: str,
container_engine: str,
) -> None:
"""Initialize this Builder."""
"""
Initialize this Builder.
:param timeout: Maximum number of seconds to wait while evaluating CWL
expressions.
"""
super().__init__()
self.job = job
self.files = files
Expand Down
2 changes: 1 addition & 1 deletion cwltool/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def get_image(
)
assert loadproc.stdin is not None # nosec
_logger.info("Sending GET request to %s", docker_requirement["dockerLoad"])
req = requests.get(docker_requirement["dockerLoad"], stream=True)
req = requests.get(docker_requirement["dockerLoad"], stream=True, timeout=60)
size = 0
for chunk in req.iter_content(1024 * 1024):
size += len(chunk)
Expand Down

0 comments on commit 86f96a4

Please sign in to comment.