fix: 移除尝试终止超时子进程的冗余代码块
Some checks failed
Docker Publish / build-and-push (push) Has been cancelled

This commit is contained in:
Cp0204 2026-01-05 16:04:58 +08:00
parent 55e338f35c
commit 39cac1bacb

View File

@ -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())