@@ -1090,10 +1090,16 @@ def stop_and_wait_for_all_manager(self) -> "SystemLauncher":
10901090 Sends our stop signal and wait until all managers are finished.
10911091 """
10921092
1093- # The idea out here is to propate the stop signal.
1094- # Meaning that the tester will share it's stop signal to all
1095- # subsequencial queues after all submitted tasks are done.
1096- self .tester_process_manager .push_stop_signal (source_worker = "main" )
1093+ # We start the termination process of the tester.
1094+ #
1095+ # Please note that we do not explicitly wait for the tester to terminate
1096+ # through the `wait` method. The reason is that the `terminate` method
1097+ # will wait for the tester to finish before terminating itself.
1098+ #
1099+ # Please also note that any process depending on the tester will be
1100+ # terminated after the tester is done because we are setting the
1101+ # `spread_stop_signal` # attribute to `True` (cf: see __init__ method).
1102+ self .tester_process_manager .terminate ()
10971103
10981104 if self .miner_process_manager :
10991105 self .miner_process_manager .wait ()
@@ -1105,8 +1111,7 @@ def stop_and_wait_for_all_manager(self) -> "SystemLauncher":
11051111 # From here, we are sure that every test and files are produced.
11061112 # We now format the generated file(s).
11071113 self .dir_files_sorter_process_manager .start ()
1108- self .dir_files_sorter_process_manager .push_stop_signal ()
1109- self .dir_files_sorter_process_manager .wait ()
1114+ self .dir_files_sorter_process_manager .terminate ()
11101115 except AssertionError :
11111116 # Example: Already started previously.
11121117 pass
0 commit comments