feat: add configurable GFS retention per orbit

This commit is contained in:
2026-11-10 11:16:03 +07:00
parent 749c4cc828
commit 30a1a9b8f0
14 changed files with 665 additions and 86 deletions

View File

@@ -74,11 +74,7 @@ async fn run_orbit_row(state: &HubState, orbit: OrbitRow) -> Result<Option<Uuid>
let retained_snapshot = if orbit.dry_run {
None
} else {
let pruned = state
.vault
.write()
.await
.prune_orbit_with_decay(orbit.id, &orbit.decay_preset)?;
let pruned = state.prune_orbit(orbit.id).await?;
state
.db
.audit("decay.pruned", &format!("orbit={}", orbit.name))