1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-19 20:29:31 +08:00

fix: use os._exit to exit process in scheduler watcher thread

This commit is contained in:
0O0o0oOoO00
2025-08-07 19:46:05 +08:00
parent cd7d75624b
commit a4e13fc3dd

View File

@@ -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":