浏览代码

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)