jobd_cancel
Cancel a queued job or stop a running job via SIGTERM, optionally recording a reason on the broker's cancellation event.
Instructions
Cancel a job (queued → cancelled; running → SIGTERM via worker signal poll, ~2s).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"job_id": "<job_id>"
},
"name": "jobd_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | ||
| reason | No | Why — recorded on the broker's job_cancelled event (see jobd_events). |