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
gcsub-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.