Cancel Task
cancel_taskAbort a running task by sending SIGTERM to its child processes, executing cleanup callbacks, and marking it as cancelled. Idempotent operation.
Instructions
Aborts a running task: sends SIGTERM to children, runs registered cleanups in reverse order, marks the task cancelled. Idempotent and never throws.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | ||
| taskId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| notFound | No | ||
| cancelled | Yes | ||
| finalStatus | No | ||
| cancelReason | No | ||
| previousStatus | No |