File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,12 @@ def __init__(
124
124
cwlVersion : str ,
125
125
container_engine : str ,
126
126
) -> None :
127
- """Initialize this Builder."""
127
+ """
128
+ Initialize this Builder.
129
+
130
+ :param timeout: Maximum number of seconds to wait while evaluating CWL
131
+ expressions.
132
+ """
128
133
super ().__init__ ()
129
134
self .job = job
130
135
self .files = files
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def get_image(
180
180
)
181
181
assert loadproc .stdin is not None # nosec
182
182
_logger .info ("Sending GET request to %s" , docker_requirement ["dockerLoad" ])
183
- req = requests .get (docker_requirement ["dockerLoad" ], stream = True )
183
+ req = requests .get (docker_requirement ["dockerLoad" ], stream = True , timeout = 60 )
184
184
size = 0
185
185
for chunk in req .iter_content (1024 * 1024 ):
186
186
size += len (chunk )
You can’t perform that action at this time.
0 commit comments