Expand description
PID tracking for running work processes
Provides functionality to track and manage running agent processes associated with specs being worked on.
Functions§
- cleanup_
stale_ pids - Clean up stale PID files (where process is no longer running)
- ensure_
pids_ dir - Ensure the PIDs directory exists
- is_
process_ running - Check if a process with the given PID is running
- list_
active_ pids - List all specs with active PID files
- read_
pid_ file - Read PID from a spec’s PID file
- remove_
pid_ file - Remove PID file for a spec
- remove_
process_ files - Remove process JSON files for a spec
Matches files like
.chant/processes/{spec_id}-{pid}.json - stop_
process - Stop a process with the given PID
- stop_
spec_ work - Stop the work process for a spec
- write_
pid_ file - Write a PID file for a spec