fix: save face.json with computed status/total_faces

compute_status() updates FaceResult in memory but didn't write back
to the file. Ingestion gate checks face.json directly, so it still
saw status=null and skipped TKG/face_cluster/Qdrant.

Now calls save_to_file() after compute_status() in swift/python
config-driven branches, matching the 'existing file' path behavior.
This commit is contained in:
Accusys
2026-10-02 16:58:17 +08:00
parent e1f13f485f
commit 65898ef71b
+2
View File
@@ -413,6 +413,7 @@ async fn run_face_with_config(
let mut result: FaceResult = serde_json::from_str(&json_str)
.context("Failed to parse Swift FACE output")?;
result.compute_status();
result.save_to_file(output_path)?;
return Ok(Some(result));
}
@@ -436,6 +437,7 @@ async fn run_face_with_config(
let mut result: FaceResult = serde_json::from_str(&json_str)
.context("Failed to parse Python FACE output")?;
result.compute_status();
result.save_to_file(output_path)?;
return Ok(Some(result));
}