From 39cac1bacbf0aa67badd35ded1bbea91cf20ff70 Mon Sep 17 00:00:00 2001 From: Cp0204 Date: Mon, 5 Jan 2026 16:04:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=B0=9D=E8=AF=95?= =?UTF-8?q?=E7=BB=88=E6=AD=A2=E8=B6=85=E6=97=B6=E5=AD=90=E8=BF=9B=E7=A8=8B?= =?UTF-8?q?=E7=9A=84=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/run.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/app/run.py b/app/run.py index 3b738aa..4d881c5 100644 --- a/app/run.py +++ b/app/run.py @@ -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())