Stop a Wiro task
kill_taskStop an unfinished model task by task ID or token; queued tasks cancel without charge, while already-running tasks may still incur a charge after the run ends.
Instructions
Stop a model task that has not finished. A queued task is cancelled and never charged. A task that was already running can still be charged for its run, and get_task_price shows any charge once the run ends. If the task finished first, the call is refused with "Process ended": read it with get_task and show the result. Not for the steps of a workflow run or the runs Studio starts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskid | No | The task ID (alternative to tasktoken). | |
| tasktoken | No | The task token returned from run_model. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | ||
| action | Yes | ||
| message | Yes | ||
| success | Yes |