4c8041974a122c6a0680f58606a19df025584ad2
run_with_frames / run_with_output_idx / run_with_output_idx_and_frames had an inverted .tmp-file flow: 1. Before spawning, if the final .json existed it was renamed to .json.tmp (the OLD output set aside as "tmp"). 2. The script was passed the FINAL .json path, so it wrote fresh data there. 3. On success, .json.tmp (the OLD/empty file) was renamed back OVER the fresh .json, discarding the new result. For face clustering this meant the freshly-clustered 2-person result was always overwritten by the stale/empty previous face_cluster.json, so the cluster agent reported "0 clusters" and Face Deduplication matched nothing. Fix: remove the bogus pre-rename and instead pass the .tmp path to the script as its output argument, then promote .tmp -> .json only on success. This guarantees the fresh result is what lands in the final file. Applied identically to all three run_* helpers. Verified on 9cbeb112 (FilmRiot): cluster-agent now returns 2 clusters / 17 traces and face_cluster.json contains the real clustering (was 0).
momentry_core
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Description
Digital asset management system with video analysis and RAG - Production version with API Key authentication
Releases
2
v0.9.20260325_151200
Latest
Languages
PLpgSQL
30.5%
Python
27.4%
HTML
20.4%
Rust
13.3%
Shell
3.1%
Other
5.2%