mirror of
https://github.com/Cp0204/quark-auto-save.git
synced 2026-01-11 22:50:45 +08:00
This commit is contained in:
parent
55e338f35c
commit
39cac1bacb
@ -511,13 +511,6 @@ def run_python(args):
|
||||
logging.error(f"错误信息: {result.stderr[:500]}")
|
||||
except subprocess.TimeoutExpired as e:
|
||||
logging.error(f">>> 任务执行超时(>{TASK_TIMEOUT}s),强制终止")
|
||||
# 尝试终止进程
|
||||
if e.process:
|
||||
try:
|
||||
e.process.kill()
|
||||
logging.info(">>> 已终止超时进程")
|
||||
except:
|
||||
pass
|
||||
except Exception as e:
|
||||
logging.error(f">>> 任务执行异常: {str(e)}")
|
||||
logging.error(traceback.format_exc())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user