ssh_job_kill
Stops a detached SSH job by sending a signal to its process group, terminating the job and any child processes it spawned.
Instructions
Stops a detached job. The signal reaches the whole process group, so anything the job started goes with it, and a job that already finished is reported as gone rather than refused. TERM is the default; KILL is for a job that ignored it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Job id returned by ssh_exec with detach: true. A job started with sudo is reached as root from the id alone — nothing extra to pass. | |
| signal | No | KILL only when TERM was already ignored. | TERM |
| profile | Yes | Machine name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| legend | No | What the words in this answer mean. A key names the field before the value — "state=limited", "jobs[].state=lost" — and only the values this answer actually used are listed. | |
| reason | No | ||
| signal | No | ||
| outcome | No |