优化代码
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user