jobd_preempt
Gracefully preempts a running or assigned preemptible job by sending the worker a SIGTERM and marking it as preempted; refuses non-preemptible or inactive jobs.
Instructions
Preempt a running/assigned preemptible job (worker SIGTERMs with grace; final state 'preempted'). Refused if not preemptible or not running.
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_preempt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes |