Skip to main content

pass

Function pass 

Source
pub async fn pass(
    db: &Database,
    settings: &RetentionSettings,
    now: Timestamp,
    leading: impl Fn() -> bool,
    metrics: &MasterMetrics,
) -> Result<Pass, DbError>
Expand description

One pass at now: outputs, runs, removed DAGs, unused DAG versions, events, commands, each counted in metrics. Stops when this master no longer leads.

ยงErrors

DbError if a batch fails: what the earlier ones deleted stays deleted.