Skip to main content

cutoff_for

Function cutoff_for 

Source
pub fn cutoff_for(days: u32, now: DateTime<Utc>) -> DateTime<Utc>
Expand description

The started_at cutoff for a days-day retention policy evaluated at now: runs started at or before this instant are in scope for deletion. Pulled out of sweep_retention so commands::history::prune’s --dry-run preview can compute and display the exact same cutoff its non-dry-run sibling would actually delete against, without needing a database handle to do it.