diff --git a/src/core/db/postgres_db.rs b/src/core/db/postgres_db.rs index 323bbab2..252e95b5 100644 --- a/src/core/db/postgres_db.rs +++ b/src/core/db/postgres_db.rs @@ -232,16 +232,6 @@ pub enum VideoStatus { Pending, Queued, Scanning, - Processing, - Waiting, - Processed, - Indexed, - CheckedOut, - KeywordReady, - SemanticReady, - PeopleReady, - FaceMgmtReady, - AgentReady, Completed, Failed, } @@ -254,16 +244,6 @@ impl VideoStatus { VideoStatus::Pending => "pending", VideoStatus::Queued => "queued", VideoStatus::Scanning => "scanning", - VideoStatus::Processing => "processing", - VideoStatus::Waiting => "waiting", - VideoStatus::Processed => "processed", - VideoStatus::Indexed => "indexed", - VideoStatus::CheckedOut => "checked_out", - VideoStatus::KeywordReady => "keyword_ready", - VideoStatus::SemanticReady => "semantic_ready", - VideoStatus::PeopleReady => "people_ready", - VideoStatus::FaceMgmtReady => "face_mgmt_ready", - VideoStatus::AgentReady => "agent_ready", VideoStatus::Completed => "completed", VideoStatus::Failed => "failed", } @@ -276,16 +256,6 @@ impl VideoStatus { "pending" => Some(VideoStatus::Pending), "queued" => Some(VideoStatus::Queued), "scanning" => Some(VideoStatus::Scanning), - "processing" => Some(VideoStatus::Processing), - "waiting" => Some(VideoStatus::Waiting), - "processed" => Some(VideoStatus::Processed), - "indexed" => Some(VideoStatus::Indexed), - "checked_out" => Some(VideoStatus::CheckedOut), - "keyword_ready" => Some(VideoStatus::KeywordReady), - "semantic_ready" => Some(VideoStatus::SemanticReady), - "people_ready" => Some(VideoStatus::FaceMgmtReady), - "face_mgmt_ready" => Some(VideoStatus::FaceMgmtReady), - "agent_ready" => Some(VideoStatus::AgentReady), "completed" => Some(VideoStatus::Completed), "failed" => Some(VideoStatus::Failed), _ => None, diff --git a/src/worker/job_worker.rs b/src/worker/job_worker.rs index 6f4d7db4..5d6ee810 100644 --- a/src/worker/job_worker.rs +++ b/src/worker/job_worker.rs @@ -665,10 +665,6 @@ impl JobWorker { crate::core::config::set_preferred_language(language); tracing::info!("[WORKER] Set preferred language from admin config: {}", config.search.vlm_output_language); - // Update status to Processing - self.db.update_video_status(&job.uuid, VideoStatus::Processing).await?; - info!("[STATUS] Updated status to 'processing' for {}", job.uuid); - // Read face_settings from job and set environment variables for face processor let mut face_settings_backup: Option<(String, String)> = None; if let Some(ref fs) = job.face_settings { @@ -2740,13 +2736,6 @@ impl JobWorker { count ); - // Update status to Indexed after Rule 1 completion - if let Err(e) = db_clone.update_video_status(&uuid_clone, VideoStatus::Indexed).await { - error!("[STATUS] Failed to update status to 'indexed' for {}: {}", uuid_clone, e); - } else { - info!("[STATUS] Updated status to 'indexed' for {}", uuid_clone); - } - if count > 0 { info!( "📝 Starting automatic vectorize for {} chunks...", @@ -3403,11 +3392,6 @@ impl JobWorker { "must": [{"key": "file_uuid", "match": {"value": uuid}}] }); - // Update status to Waiting during TKG verification - if let Err(e) = self.db.update_video_status(uuid, VideoStatus::Waiting).await { - error!("[STATUS] Failed to update status to 'waiting' for TKG: {}", e); - } - let mut attempts = 0; let max_attempts = 60; let mut stable_trace_count: Option = None; @@ -3728,11 +3712,6 @@ impl JobWorker { job_id ); - // Update status to Waiting during ingestion phase - if let Err(e) = self.db.update_video_status(uuid, VideoStatus::Waiting).await { - error!("[STATUS] Failed to update status to 'waiting' for {}: {}", uuid, e); - } - return Ok(false); }