소스 검색

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)