From 583429713d3ec0a67e22f54d2ca34ff857715893 Mon Sep 17 00:00:00 2001 From: Prakash Maheshwaran <73785492+Prakashmaheshwaran@users.noreply.github.com> Date: Fri, 6 Jun 2025 00:04:16 -0400 Subject: [PATCH] refactor: rename stop_workflow command to cancel_workflow for consistency (#2616) --- skyvern/cli/workflow.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/skyvern/cli/workflow.py b/skyvern/cli/workflow.py index eed77fe3..bc9ffb8f 100644 --- a/skyvern/cli/workflow.py +++ b/skyvern/cli/workflow.py @@ -71,15 +71,15 @@ def start_workflow( ) -@workflow_app.command("stop") -def stop_workflow( +@workflow_app.command("cancel") +def cancel_workflow( ctx: typer.Context, run_id: str = typer.Argument(..., help="ID of the workflow run"), ) -> None: """Cancel a running workflow.""" client = _get_client(ctx.obj.get("api_key") if ctx.obj else None) client.agent.cancel_run(run_id=run_id) - console.print(Panel(f"Stop signal sent for run {run_id}", border_style="red")) + console.print(Panel(f"Cancel signal sent for run {run_id}", border_style="red")) @workflow_app.command("status")