don't try to run cleanup if frigate is in safe mode (#22492)

This commit is contained in:
Josh Hawkins
2026-03-16 13:38:24 -06:00
committed by GitHub
parent 65ca90db20
commit d4731c1dea
3 changed files with 12 additions and 0 deletions
+4
View File
@@ -350,6 +350,10 @@ class RecordingCleanup(threading.Thread):
logger.debug("End expire recordings.")
def run(self) -> None:
if self.config.safe_mode:
logger.info("Safe mode enabled, skipping recording cleanup")
return
# on startup sync recordings with disk if enabled
if self.config.record.sync_recordings:
sync_recordings(limited=False)