release: v1.3.1 - Pipeline Queue Integration, OCR Fix, Worker Compatibility
Major Changes: - Pipeline Queue integration completed (internal.file + pipeline.commands) - Fixed old job_worker database compatibility with new command_queue table - Compiled Swift OCR binary (was missing, causing empty OCR results) - Added deep scan functionality through re-scan API Fixes: - Changed CommandJob.id from i32 to i64 for database compatibility - Added UUID generation in create_command (message_id field) - Fixed claim_pending_commands to query queue_name = 'internal.file' - Fixed field mappings: command_id → message_id, job_type → command_type - Added support for 'processing' status in CommandJobStatus Queue System: - internal.file queue: for register/unregister/re-scan commands (job_worker) - pipeline.commands queue: for vectorize/store_asrx/etc commands (pipeline_worker) Documentation: - Added comprehensive queue system documentation - Created M4 workspace status reports - Updated AGENTS.md with queue system details
This commit is contained in:
@@ -344,7 +344,7 @@ async fn trigger_processing(
|
||||
|
||||
// If force=true, delete output files to force re-processing
|
||||
if req.force {
|
||||
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
||||
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
||||
let deleted_count = delete_output_files_for_uuid(&file_uuid, &output_dir);
|
||||
tracing::info!(
|
||||
"[TRIGGER] Force re-scan: deleted {} output files for {}",
|
||||
@@ -467,7 +467,7 @@ async fn download_json(
|
||||
State(state): State<AppState>,
|
||||
Path((file_uuid, processor)): Path<(String, String)>,
|
||||
) -> Result<Json<serde_json::Value>, StatusCode> {
|
||||
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
||||
let output_dir = crate::core::config::OUTPUT_DIR.to_string();
|
||||
let path = std::path::Path::new(&output_dir).join(format!("{}.{}.json", file_uuid, processor));
|
||||
let content = tokio::fs::read_to_string(&path)
|
||||
.await
|
||||
@@ -876,7 +876,7 @@ async fn get_processor_counts(
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Special handling for face_cluster: query trace_profiles if frame_count is None
|
||||
if proc_name == "face_cluster" && frame_count.is_none() {
|
||||
let tp_table = crate::core::db::schema::table_name("trace_profiles");
|
||||
|
||||
Reference in New Issue
Block a user