Skip to main content

Module prune

Module prune 

Source
Expand description

Queue pruning submodule.

This module contains the pruning entry points and internal helpers used to remove old tasks from the done archive (.ralph/done.jsonc) according to configurable filters (age, status, keep-last) while preserving the original order of remaining tasks.

The parent queue module re-exports the public API so callers can continue using crate::queue::prune_done_tasks, crate::queue::PruneOptions, and crate::queue::PruneReport.

Structs§

PruneOptions
Options for pruning tasks from the done archive.
PruneReport
Result of a prune operation on the done archive.

Functions§

prune_done_tasks
Prune tasks from the done archive based on age, status, and keep-last rules.