cancel_task
Stops a task by marking it cancelled and asks the running worker to terminate its agent process tree; use when work should be abandoned, not resumed.
Instructions
Stop a task: mark it cancelled, and ask the running worker to terminate its agent process tree. This is not undone by resuming, so use it only when the user wants the work abandoned. Task history and reports are kept, and it is safe to call again. A task that already COMPLETED or was REJECTED cannot be stopped. To get a stuck execution moving instead, use recover_workers or resume_pending_dispatch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task id, as shown in get_task_status or list results. | |
| project_id | Yes | Registered project id, as returned by list_projects. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||