$worker
shell
v0.3.5Unix shell + filesystem worker — exec with allowlist/denylist/timeout/output caps and background jobs; fs::ls|stat|mkdir|rm|chmod|mv|grep|sed|read|write with host jail, denylist, size caps, and sandbox-target forwarding
- macOS: arm64 · x64
- Linux: arm64 · armv7 · x64
skill doc
skills/kill.md
Terminating a running background job
When to use
- Cancelling a runaway build or long process spawned by
shell::exec_bg. - Cleaning up before re-issuing a corrected command.
- Reaping at the end of an orchestration before unregistering the worker.
Notes
- There is no
signalfield on the wire. Host kills go through tokio'sChild::start_kill, a hard SIGKILL on Unix. - A non-running job returns
killed: falsewithreason: "not running". That is not an error. - Sandbox-backed jobs cannot be hard-killed because
sandbox::exechas no cancel hook. The record flips tokilledandfinished_at_msis stamped immediately soshell::statusandshell::listreflect cancellation, but the in-VM process keeps running until itstimeout_msexpires. The response carries areasonexplaining this. - For real cancellation of a sandbox job, set a tight
timeout_mson the originalexec_bg, or callsandbox::stopto tear down the VM. not_found(the triggerErr) means thejob_ideither never existed or aged out of retention.