Force Kill Work Order
Work Orders
Force Kill Work Order
Forcefully terminate a work order’s agent process
POST
Force Kill Work Order
Force Kill Work Order
Forcefully terminates a work order’s agent process. This is more aggressive than Cancel and should be used when graceful shutdown is not working.Request
The work order ID to force kill (e.g.,
wo_abc123)Milliseconds to wait for graceful shutdown before SIGKILL (0-30000)
If true, skip grace period and send SIGKILL immediately
Optional reason for force kill (logged for audit)
Immediate Kill
Response
Indicates if the request was successful
Force kill result
Example Responses
Graceful Termination
Forced Kill (SIGKILL)
Already Terminated
Error Responses
Work Order Not Found
Kill Behavior
| Scenario | Behavior |
|---|---|
immediate: true | Sends SIGKILL immediately |
immediate: false | Sends SIGTERM, waits gracePeriodMs, then SIGKILL if needed |
| No running process | Returns success with durationMs: 0 |
| Process in container | Terminates container |
| Process in subprocess | Terminates process tree |
Difference from Cancel
| Aspect | Cancel | Force Kill |
|---|---|---|
| Signal | SIGTERM only | SIGTERM then SIGKILL |
| Wait time | System default | Configurable grace period |
| Use case | Normal shutdown | Stuck processes |
| Result status | canceled | failed or canceled |
Related
- Cancel Work Order - Graceful cancellation
- Get Work Order - Check work order status