frigate/frigate/events
ryzendigo 7485b48f0e
fix: iterator exhausted by debug log prevents event cleanup (#22469)
In both expire_snapshots() and expire_clips(), the expired_events
query uses .iterator() for lazy evaluation, but the very next line
calls list(expired_events) inside an f-string for debug logging.
This consumes the entire iterator, so the subsequent for loop that
deletes media files from disk iterates over an exhausted iterator
and processes zero events.

Snapshots and clips for removed cameras are never deleted from disk,
causing gradual disk space exhaustion.

Materialize the iterator into a list before logging so both the
debug message and the cleanup loop use the same data.
2026-03-16 06:48:35 -06:00
..
__init__.py Ability to manually create events through the API (#3184) 2023-05-19 05:16:11 -05:00
audio.py Fallback from tflite-runtime to ai-edge-litert (#21876) 2026-02-26 21:55:29 -07:00
cleanup.py fix: iterator exhausted by debug log prevents event cleanup (#22469) 2026-03-16 06:48:35 -06:00
maintainer.py Debug replay (#22212) 2026-03-04 10:07:34 -06:00
types.py Add ability to configure genai to use snapshot instead of thumbnails (#14077) 2024-09-30 15:54:53 -06:00