Преглед на файлове

shutdown executor after stopping main thread.

jrobinAV преди 1 година
родител
ревизия
67e7ce5833
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      taipy/core/_orchestrator/_dispatcher/_standalone_job_dispatcher.py

+ 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)