cancel_dispatch
Cancel a running job by terminating its process and asyncio task, updating status to cancelled. Returns confirmation or reason if job already finished.
Instructions
User-cancel a running job. SIGTERMs the subprocess by PID, then
cancels the asyncio task. Status becomes cancelled (vs the
abandoned state for runtime/transport-induced cancellations).
Returns {cancelled: true} if the cancel was actionable, or
{cancelled: false, reason} for jobs that have already finished
or have no live task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |