Skip to main content

cleanup_stale_runs

Function cleanup_stale_runs 

Source
pub fn cleanup_stale_runs(
    parent: &Path,
    modified_before: SystemTime,
) -> Result<StaleCleanupReport, ArtifactError>
Expand description

Remove only stale, marker-owned staging runs that are direct children of parent.

Retained evidence has a caller-chosen name and is never eligible. Symlink candidates are rejected, canonical parent containment is verified, and individual failures are counted.