feat: declarative pipeline config, non-blocking Scene VLM, rust_asrx
Consolidated snapshot (previously WIP in working tree). - core/pipeline_config: new module loading config/pipeline_flows.json as the source of truth for stage execution mode (parallel/blocking) and dependencies - worker/job_worker: dispatch Scene VLM to a background task when the stage is declared parallel, unblocking the worker poll loop; resolve processor dependencies from pipeline_flows.json (fallback to built-in) - config/pipeline_flows.json: asrx depends on [cut, asr] - scripts/fix_stuck_jobs: fix UTC timezone comparison, raise default threshold to 6h, skip jobs with recent processor activity - rust_asrx: Rust speaker diarization CLI + processor wiring - processor metadata helper; fast_face_clustering script; file_progress pipeline API; scan API; VAD updates
This commit is contained in:
@@ -746,6 +746,8 @@ pub fn count_face_artifacts(output_dir: &str, file_uuid: &str) -> FaceArtifactsC
|
||||
pub struct SceneProfile {
|
||||
pub version: String,
|
||||
pub file_uuid: String,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub processor: Option<crate::core::processor::ProcessorInfo>,
|
||||
pub status: SceneStatus,
|
||||
pub video_info: VideoInfo,
|
||||
pub config: SceneConfig,
|
||||
@@ -885,9 +887,17 @@ pub struct SceneAttributes {
|
||||
|
||||
impl SceneProfile {
|
||||
pub fn new(file_uuid: &str, video_info: VideoInfo, config: SceneConfig) -> Self {
|
||||
use crate::core::processor::{ProcessorInfo, PROCESSOR_VERSION};
|
||||
|
||||
Self {
|
||||
version: "1.0".to_string(),
|
||||
file_uuid: file_uuid.to_string(),
|
||||
processor: Some(ProcessorInfo {
|
||||
name: "scene_vlm".to_string(),
|
||||
tool: "ffmpeg_scene_detect".to_string(),
|
||||
version: PROCESSOR_VERSION.to_string(),
|
||||
config: Some(serde_json::to_value(&config).unwrap_or(serde_json::json!({}))),
|
||||
}),
|
||||
status: SceneStatus::Pending,
|
||||
video_info,
|
||||
config,
|
||||
|
||||
Reference in New Issue
Block a user