From c90811e688b05facaa087b7527c782573f3bbba1 Mon Sep 17 00:00:00 2001 From: Ryan Bottriell Date: Fri, 3 May 2024 11:24:06 -0700 Subject: [PATCH] Do not clean renders when not supported Signed-off-by: Ryan Bottriell --- crates/spfs/src/clean.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/crates/spfs/src/clean.rs b/crates/spfs/src/clean.rs index 6ab1d086b..4cc8c7067 100644 --- a/crates/spfs/src/clean.rs +++ b/crates/spfs/src/clean.rs @@ -575,9 +575,15 @@ where }; let repo = repo.opened().await?; - result += self + result += match self .remove_unvisited_renders_and_proxies_for_storage(None, &repo) - .await?; + .await + { + // If the repository is not setup for render storage, then we + // quietly ignore this entire process + Err(Error::NoRenderStorage(_)) => return Ok(result), + res => res?, + }; let renders_for_all_users = repo.renders_for_all_users()?;