fix: address 3 quality review findings — flush_batch finally guard, _laplacian_var helper, has_frigate_scores no-copy

This commit is contained in:
2026-06-16 17:09:00 +00:00
parent f3622b8d41
commit b622e58f1b
3 changed files with 17 additions and 10 deletions
+4 -1
View File
@@ -600,7 +600,10 @@ def upload_to_frigate(jobs: list[dict]) -> None:
)
finally:
flush_batch(UPLOAD_TRACKER_FILE)
try:
flush_batch(UPLOAD_TRACKER_FILE)
except Exception as _flush_exc:
logger.warning("flush_batch failed during cleanup — batch will be recovered on next begin_batch: %s", _flush_exc)
# Batch-map Frigate filenames to asset IDs now that all uploads are done.
if actually_uploaded and not _skip_reconcile: