Expand description
run_background and check_background: spawn long-running commands
asynchronously and poll their status later.
run_background returns a job ID immediately so the agent can continue
working while the command runs. check_background retrieves the output
(or partial output) of a previously spawned job.
Jobs are stored in a shared BackgroundJobManager and cleaned up after
a configurable TTL or when explicitly checked.
Structs§
- Background
JobManager - Shared manager for background jobs.
- Check
Background - The
check_backgroundtool: poll a previously spawned background job. - Job
- A single background job.
- RunBackground
- The
run_backgroundtool: spawn a command and return immediately.
Enums§
- JobState
- State of a background job.