clan-cli: Add verb 'cancel' to openapi
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user