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
@@ -324,6 +324,10 @@ class EventCleanup(threading.Thread):
return events_to_update
def run(self) -> None:
if self.config.safe_mode:
logger.info("Safe mode enabled, skipping event cleanup")
return
# only expire events every 5 minutes
while not self.stop_event.wait(300):
events_with_expired_clips = self.expire_clips()