Files
frigate/web/src
Josh HawkinsandGitHub 18bc2c6570 Event cleanup fixes (#25072)
* keep event cleanup running and fix storage usage keys

- Event cleanup ran with no exception handling inside its loop, so one error (a camera added or removed while it iterated the shared cameras dict, a DB error, a thumbnail unlink failure) ended event and snapshot retention until restart. Each cycle is now guarded, camera iterations use a snapshot, and thumbnail unlink errors are caught
- Camera keys were captured once at startup, so a camera added at runtime also matched the removed-camera branch and its events could expire early under the global retention. The keys are refreshed each cycle and the removed-camera label cache resets when they change
- Clip expiry had no has_clip filter and redid every past expiration each cycle. The queries now skip events already expired, and the dead clip unlink block is removed
- Storage usage was keyed by friendly name, so cameras sharing one merged into a single row. It is keyed by camera id and the storage graph resolves the display name

* docstring
2026-11-24 06:19:52 -07:00
..
2026-11-24 06:19:52 -07:00
2026-11-17 14:25:05 -07:00
2026-11-17 14:25:05 -07:00
2026-11-23 07:02:15 -07:00
2026-10-10 15:01:33 -05:00
2024-02-28 16:23:56 -06:00
2022-03-11 07:49:06 -06:00