@@ -42,6 +42,7 @@ def __init__(
42
42
launch_timeout : Optional [float ] = None ,
43
43
task_wait_timeout : Optional [float ] = None ,
44
44
last_result_transfer_timeout : float = 300.0 ,
45
+ external_execution_wait : float = 5.0 ,
45
46
peer_read_timeout : Optional [float ] = None ,
46
47
monitor_interval : float = 1.0 ,
47
48
read_interval : float = 0.1 ,
@@ -95,6 +96,7 @@ def __init__(
95
96
self ._launcher_finish = False
96
97
self ._launcher_finish_time = None
97
98
self ._last_result_transfer_timeout = last_result_transfer_timeout
99
+ self ._external_execution_wait = external_execution_wait
98
100
self ._received_result = Event ()
99
101
self ._job_end = False
100
102
@@ -245,6 +247,7 @@ def _initialize_external_execution(
245
247
self .log_error (fl_ctx , "External execution set up failed." )
246
248
abort_signal .trigger ("External execution set up failed." )
247
249
return False
250
+ time .sleep (self ._external_execution_wait )
248
251
return True
249
252
250
253
def _execute_launcher_method_in_thread_executor (self , method_name : str , ** kwargs ) -> Any :
0 commit comments