Documentation
¶
Overview ¶
Package runner owns preflight, run directories and child process control.
Index ¶
- func Argv(j jobs.Job, workdir, prompt string) []string
- func Cancel(ctx context.Context, db *store.Store, data, id string) error
- func OwnerStart() (time.Time, error)
- func Preamble(r store.Run, last *store.Run, data string, memoryLines ...string) string
- func ProcessStart(pid int) (time.Time, error)
- func RecoverClaimed(ctx context.Context, j jobs.Job, r *store.Run) error
- func RemoveWorktree(ctx context.Context, repo string, r store.Run) error
- func TeardownGroup(pid int, c clock.Clock, grace time.Duration)
- func WorktreeChanges(ctx context.Context, path string) (string, error)
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OwnerStart ¶
OwnerStart uses the OS ps binary even when a job has a restricted PATH.
func ProcessStart ¶
ProcessStart uses ps on both Linux and macOS (macOS has no /proc). ps lstart has second precision. Record the observed process start in proc_start and require equality before signalling: a later recycled PID must also be refused.
func RecoverClaimed ¶
RecoverClaimed removes a partial setup left by a dead owner.
func TeardownGroup ¶
TeardownGroup drains descendants even after their group leader has been reaped.