Skip to main content

Module gc

Module gc 

Source
Expand description

Implementation of the gc sub-command.

Traverses all job directories under the resolved root, evaluates each for eligibility (terminal state + GC timestamp older than the retention window), and either deletes or reports them.

Structs§

GcOpts
Options for the gc sub-command.

Functions§

dir_size_bytes
Recursively compute the total byte size of a directory.
execute
Execute gc: traverse root, evaluate jobs, delete or report, emit JSON.
parse_duration
Parse a duration string into seconds.