From f19aa16773c7fbc61835affd798cbe7fcc93ec31 Mon Sep 17 00:00:00 2001 From: yhydev Date: Fri, 12 Dec 2025 16:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_script.py b/run_script.py index 92e9d16..af4ab77 100644 --- a/run_script.py +++ b/run_script.py @@ -167,7 +167,7 @@ async def run_script( print(f"清理临时脚本文件失败: {e}") @flow(name="run-script", log_prints=True) -def start( +async def start( script_url: Optional[str] = None, shell_script: Optional[str] = None ) -> dict: @@ -183,7 +183,7 @@ def start( """ print(f"script_url: {script_url}") print(f"shell_script: {shell_script}") - return run_script( + return await run_script( script_url=script_url, shell_script=shell_script )