task_stop
Stop a task: SIGTERM to its process group, SIGKILL after 5 seconds. The ending shows in tasks_list and history_search a moment later.
Arguments
Over MCP every tool also takes machine: the machine’s name or id, optional when only one machine is online.
| Name | Type | Required | Meaning |
|---|---|---|---|
task | integer | yes | Task id, as task_start or tasks_list returned it. |
Result
| Name | Type | Required | Meaning |
|---|---|---|---|
stopping | boolean | yes | The stop was sent; the ending arrives a moment later (tasks_list, history_search). |
task | integer | yes |
Examples
MCP
{
"name": "task_stop",
"arguments": {
"machine": "<machine>",
"task": 0
}
}Limits
The call times out after 10 s (timed_out). Available since version 0.0.1. A refused or failed call returns one of the error codes.