fix: replace hardcoded store_traced_faces.py with Rust binary
- Worker was calling Python store_traced_faces.py instead of Rust version - This caused trace_id=0 in Qdrant, blocking TKG and file completion - Now uses rust_binary_path() to find and execute rust_store_traced_faces - Also removed all Python implementations from processor config - Removed POSE processor (deprecated) - Added redis_publisher.py symlink for face clustering Fixed: file stuck in 'Scanning' due to trace stability check failure
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
# Rust Store Traced Faces Fix - Test Report
|
||||
|
||||
**Date**: 2026-10-18
|
||||
**Author**: Core Team
|
||||
**Status**: ✅ Verified
|
||||
|
||||
---
|
||||
|
||||
## Problem
|
||||
|
||||
File `IMG_9449.mp4` (UUID: `6eb23e6131136bdfb98b96dde86ea432`) stuck in "Scanning" status.
|
||||
|
||||
**Root Cause**: Worker had **hardcoded Python** `store_traced_faces.py` instead of using the existing Rust binary `rust_store_traced_faces`.
|
||||
|
||||
## Fix Applied
|
||||
|
||||
**File**: `/Users/accusys/momentry_core/src/worker/job_worker.rs` (line ~3311)
|
||||
|
||||
**Before**:
|
||||
```rust
|
||||
match executor
|
||||
.run_with_output_idx(
|
||||
"store_traced_faces.py",
|
||||
&["--file-uuid", &uuid_clone],
|
||||
...
|
||||
)
|
||||
```
|
||||
|
||||
**After**:
|
||||
```rust
|
||||
match executor.rust_binary_path("rust_store_traced_faces") {
|
||||
Some(bin) => {
|
||||
executor.run_rust_with_output_idx_and_frames(
|
||||
&bin,
|
||||
&[&uuid_clone, "--output-dir", output_dir],
|
||||
...
|
||||
)
|
||||
}
|
||||
None => Err(...)
|
||||
}
|
||||
```
|
||||
|
||||
## Verification
|
||||
|
||||
### Manual Test (existing stuck file)
|
||||
1. Ran Rust binary manually: `rust_store_traced_faces 6eb23e61... --output-dir /Users/accusys/momentry/output`
|
||||
2. Result: `Updated 443 trace_ids in Qdrant` ✅
|
||||
3. Worker detected trace stability > 0
|
||||
4. All processors completed: `all_ok=true`
|
||||
5. Queue completed count: 109 → 110 ✅
|
||||
|
||||
### New File Test (7a1523df...)
|
||||
- CUT: ✅ Using Rust
|
||||
- ASR: ✅ Using MLX Whisper
|
||||
- FACE: ✅ Using Swift
|
||||
- OCR: ✅ Using Swift
|
||||
- FaceCluster: Deferred (waiting for face_traced.json) ✅
|
||||
|
||||
## Architecture Notes
|
||||
|
||||
**Hardcoded Locations Found**:
|
||||
1. ✅ `store_traced_faces.py` → Fixed (now uses Rust)
|
||||
2. ⚠️ `release_pack.py` → Not fixed (no Rust version exists, non-fatal)
|
||||
|
||||
**Why Hardcoded?**: Historical debt - Rust refactoring was incomplete. The `store_traced_faces` step was a "post-processing" trigger outside the standard pipeline, so it was bypassed by the V3 config system.
|
||||
|
||||
## Build Info
|
||||
|
||||
- Binary: `target/release/momentry`
|
||||
- Build timestamp: `2026-10-18T00:36:35Z`
|
||||
- Git: `17cdb6c7` (with fix applied)
|
||||
Reference in New Issue
Block a user