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.
This commit is contained in:
Accusys
2026-10-02 17:23:44 +08:00
parent 15fc356666
commit ba71daf2c4
+14
View File
@@ -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));
}
_ => {