From 3cdc13aa37bdb28ea1eeddd5928c970c587346cd Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 6 Mar 2022 22:23:27 +0000 Subject: [PATCH] expire tasks in 'ta gc' --- cli/src/invocation/cmd/gc.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/src/invocation/cmd/gc.rs b/cli/src/invocation/cmd/gc.rs index f35eaed76..e9b8a2828 100644 --- a/cli/src/invocation/cmd/gc.rs +++ b/cli/src/invocation/cmd/gc.rs @@ -4,6 +4,8 @@ use termcolor::WriteColor; pub(crate) fn execute(w: &mut W, replica: &mut Replica) -> Result<(), crate::Error> { log::debug!("rebuilding working set"); replica.rebuild_working_set(true)?; + log::debug!("expiring old tasks"); + replica.expire_tasks()?; writeln!(w, "garbage collected.")?; Ok(()) }