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__(
124124 cwlVersion : str ,
125125 container_engine : str ,
126126 ) -> 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+ """
128133 super ().__init__ ()
129134 self .job = job
130135 self .files = files
Original file line number Diff line number Diff line change @@ -180,7 +180,7 @@ def get_image(
180180 )
181181 assert loadproc .stdin is not None # nosec
182182 _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 )
184184 size = 0
185185 for chunk in req .iter_content (1024 * 1024 ):
186186 size += len (chunk )
You can’t perform that action at this time.
0 commit comments