$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/status.md
Polling a background job to completion
When to use
- Polling a job spawned by
shell::exec_bguntil it leavesrunning. - Fetching captured
stdout/stderronce a job has terminated, before retention expires. - Diagnosing a job that exited with a non-zero
exit_code.
Notes
not_found(the triggerErr) means thejob_ideither never existed or aged out ofcfg.job_retention_secs(default 1 hour after termination). Do not retry; re-runshell::exec_bgif the work still needs doing.- Per-stream output is bounded by
cfg.max_output_bytes(default 1 MiB). Once the cap is hit on a stream, the corresponding*_truncatedflag staystrueand new bytes are dropped while the job keeps running. - Use
shell::listfor a lightweight overview of every job.shell::statusreturns the full record, including potentially large captured buffers, so it costs more per call. - Sandbox-backed jobs that were
shell::kill-ed flip tokilledimmediately even though the in-VM process may still be running. Their final stdout/stderr arrive on the latesandbox::execresponse and are not applied if the record is alreadykilled.