From a4e13fc3ddf10a06a14d7e0787edb0ad4fdd56de Mon Sep 17 00:00:00 2001 From: 0O0o0oOoO00 <11174151+0O0o0oOoO00@users.noreply.github.com> Date: Thu, 7 Aug 2025 19:46:05 +0800 Subject: [PATCH] fix: use os._exit to exit process in scheduler watcher thread --- scheduler_watcher.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scheduler_watcher.py b/scheduler_watcher.py index ed8cfbfa9..910b0d2d2 100644 --- a/scheduler_watcher.py +++ b/scheduler_watcher.py @@ -1,4 +1,5 @@ import datetime +import os import threading import time from module.logger import logger @@ -95,7 +96,7 @@ class SchedulerWatcher: title=f"Alas <{self.alas_obj.config_name}>: Scheduler Stuck", content=f"Task {self.current_task} reached final time limit, assuming the scheduler is stuck", ) - exit(-1) + os._exit(-1) @staticmethod def get_instance() -> "SchedulerWatcher":