ssh_remove_job
Remove a job from the registry to free its slot and release buffers. Completed jobs are removed instantly; running jobs require force to close the SSH channel.
Instructions
Drop a job from the registry, freeing its slot against max_jobs_per_host and releasing its ring buffers.
Finished / crashed / killed jobs can always be removed. STILL-RUNNING jobs require force=True, which closes the SSH channel (sends EOF to the remote's stdin) but does NOT guarantee the remote process dies — for a hard kill call ssh_signal(KILL) FIRST and then ssh_remove_job.
Returns removed=True if a job was actually dropped, removed=False if the id wasn't present (a no-op, not an error — useful for idempotent cleanup scripts that don't know whether a job is still around).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The id returned by ``ssh_spawn``. | |
| force | No | When True, remove the job even if it's still running. Closes the SSH channel as a side effect. When False (default), removing a running job returns an error with ``kind="still_running"``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||