clan-cli: Add verb 'cancel' to openapi

This commit is contained in:
Qubasa
2025-07-08 17:43:14 +07:00
parent 26710c0aca
commit 60263bac8a
2 changed files with 2 additions and 1 deletions

View File

@@ -33,7 +33,7 @@ def cancel_task(task_id: str) -> None:
@API.register
def long_blocking_task(somearg: str) -> str:
def run_blocking_task(somearg: str) -> str:
"""A long blocking task that simulates a long-running operation."""
time.sleep(1)
ctx = get_async_ctx()

View File

@@ -26,6 +26,7 @@ COMMON_VERBS = {
"open", # initiate session, shell, file, etc.
"check", # validate, probe, or assert
"run", # start imperative task or action; machine-deploy etc.
"cancel"
}