Stop a background job
omv_stop_jobCancels a running NAS job by sending SIGTERM and stops following its output once the final lines are read. Use it to stop a self-test or job when asked to cancel it.
Instructions
Stop a running job: the NAS sends it SIGTERM, and this server stops following it after reading its last output. Use it when asked "cancel that job" or "stop the self-test"; find the job id with omv_get_job. A job that has already ended is returned as it is. Stopping a smart_test job may not abort a self-test the disk has already begun. An install_updates job is not stopped: interrupting a package upgrade can leave packages half configured.
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": "omv_stop_job"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job id omv_start_job returned, such as job-1a2b3c4d. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job | No | ||
| jobs | No | ||
| kind | No | ||
| lines | No | ||
| state | No | ||
| detail | No | ||
| target | No | ||
| started_at | No | ||
| finished_at | No | ||
| reboot_required | No |