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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user