Skip to main content

state_dir

Function state_dir 

Source
pub fn state_dir(id: &JobId) -> String
Expand description

Remote per-job state, as a shell string (never a local PathBuf).

Jobs live under jobs/ rather than directly in the state dir because the ticket lock keeps <host>.lock in the same tree. Sharing one parent made coop ls report dev.lock as an orphaned job, and would have let prune delete a live lock. They collide whenever the orchestrator and the target are the same machine, which is exactly the local-sshd test setup.