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:
Accusys
2026-10-02 13:50:49 +08:00
parent 193af91cd7
commit 9e1fa0a3ff
4 changed files with 13 additions and 11 deletions
+3 -1
View File
@@ -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",
+1 -1
View File
@@ -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,