From ba71daf2c4175bf5bd0cff6257532378dfcb3e65 Mon Sep 17 00:00:00 2001 From: Accusys Date: Fri, 2 Oct 2026 17:23:44 +0800 Subject: [PATCH] fix: store face embeddings to Qdrant in config-driven path Config-driven swift/python branches in run_face_with_config were saving face.json but not storing embeddings to Qdrant. This caused TKG spawn to wait indefinitely for Qdrant face points that never arrived, blocking ingestion completion. The fallback hardcoded path had store_face_embeddings_to_qdrant call, but config-driven path returned early without it. Fix: call store_face_embeddings_to_qdrant after save_to_file in both swift and python config-driven branches. --- src/core/processor/face.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/core/processor/face.rs b/src/core/processor/face.rs index ff5e79dc..665b9aca 100644 --- a/src/core/processor/face.rs +++ b/src/core/processor/face.rs @@ -415,6 +415,13 @@ async fn run_face_with_config( result.compute_status(); result.save_to_file(output_path)?; + if let Some(uid) = uuid { + match store_face_embeddings_to_qdrant(uid, &mut result, output_path).await { + Ok(count) => tracing::info!("[FACE] Stored {} embeddings to Qdrant", count), + Err(e) => tracing::warn!("[FACE] Failed to store embeddings to Qdrant: {}", e), + } + } + return Ok(Some(result)); } "python" => { @@ -439,6 +446,13 @@ async fn run_face_with_config( result.compute_status(); result.save_to_file(output_path)?; + if let Some(uid) = uuid { + match store_face_embeddings_to_qdrant(uid, &mut result, output_path).await { + Ok(count) => tracing::info!("[FACE] Stored {} embeddings to Qdrant", count), + Err(e) => tracing::warn!("[FACE] Failed to store embeddings to Qdrant: {}", e), + } + } + return Ok(Some(result)); } _ => {