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):
353353 help = """command-line args to pass to ipcontroller""" ,
354354 )
355355
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 ):
357367 """Retrieve connection info for the controller
358368
359369 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.
360373 """
374+ if timeout is None :
375+ timeout = self .connection_info_timeout
361376 connection_files = self .connection_files
362377 paths = list (connection_files .values ())
363378 start_time = time .monotonic ()
You can’t perform that action at this time.
0 commit comments