Pārlūkot izejas kodu

shutdown executor after stopping main thread.

jrobinAV 1 gadu atpakaļ
vecāks
revīzija
67e7ce5833

+ 1 - 1
taipy/core/_orchestrator/_dispatcher/_standalone_job_dispatcher.py

@@ -54,5 +54,5 @@ class _StandaloneJobDispatcher(_JobDispatcher):
         self._update_job_status(job, ft.result())
 
     def stop(self):
-        self._executor.shutdown(wait=True, cancel_futures=True)
         super().stop()
+        self._executor.shutdown(wait=True, cancel_futures=True)