File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -353,11 +353,26 @@ class ControllerLauncher(BaseLauncher):
353
353
help = """command-line args to pass to ipcontroller""" ,
354
354
)
355
355
356
- async def get_connection_info (self , timeout = 60 ):
356
+ connection_info_timeout = Float (
357
+ 60 ,
358
+ config = True ,
359
+ help = """
360
+ Default timeout (in seconds) for get_connection_info
361
+
362
+ .. versionadded:: 8.7
363
+ """ ,
364
+ )
365
+
366
+ async def get_connection_info (self , timeout = None ):
357
367
"""Retrieve connection info for the controller
358
368
359
369
Default implementation assumes profile_dir and cluster_id are local.
370
+
371
+ .. versionchanged:: 8.7
372
+ Accept `timeout=None` (default) to use `.connection_info_timeout` config.
360
373
"""
374
+ if timeout is None :
375
+ timeout = self .connection_info_timeout
361
376
connection_files = self .connection_files
362
377
paths = list (connection_files .values ())
363
378
start_time = time .monotonic ()
You can’t perform that action at this time.
0 commit comments