fix: ASRX null frame tolerance and FaceCluster unblocking
- AsrxSegment.start_frame/end_frame -> Option<u64> so the ASR fallback (which emits null frames) deserializes instead of erroring - P2 face-trace trigger gated on has_face alone (not has_asrx), so no-face videos still get face_traced.json via the fast-path, unblocking FaceCluster and preventing the job from failing
This commit is contained in:
@@ -2821,13 +2821,15 @@ impl JobWorker {
|
||||
}
|
||||
}
|
||||
|
||||
if has_face && has_asrx {
|
||||
if has_face {
|
||||
let mut pp = PipelineProgress::new(uuid);
|
||||
pp.update_stage("processors", 1.0, "completed", None);
|
||||
publish_pipeline_progress(self.redis.as_ref(), uuid, &pp).await;
|
||||
|
||||
// 🚀 P2 Trigger: Face Trace + DB Store (after Face)
|
||||
// Runs face_tracker.py (IoU+embedding tracking), stores trace_id + position in DB
|
||||
// Note: trigger is gated on face alone (not has_asrx) so no-face videos still
|
||||
// get face_traced.json written via the fast-path, unblocking FaceCluster.
|
||||
if has_face {
|
||||
let traced_path = format!(
|
||||
"{}/{}.face_traced.json",
|
||||
|
||||
@@ -1521,7 +1521,7 @@ impl ProcessorPool {
|
||||
});
|
||||
|
||||
pre_chunks_to_store.push((
|
||||
segment.start_frame as i64,
|
||||
segment.start_frame.unwrap_or(0) as i64,
|
||||
Some(segment.start_time),
|
||||
data,
|
||||
None,
|
||||
|
||||
Reference in New Issue
Block a user