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:
+11
-13
@@ -8,9 +8,9 @@ use std::sync::RwLock;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum ExecutionMode {
|
||||
Python, // Use Python scripts (default)
|
||||
Cli, // Use Swift/Rust CLI tools
|
||||
Hybrid, // Use CLI for performance-critical processors, Python for others
|
||||
Python, // Use Python scripts (default)
|
||||
Cli, // Use Swift/Rust CLI tools
|
||||
Hybrid, // Use CLI for performance-critical processors, Python for others
|
||||
}
|
||||
|
||||
pub static EXECUTION_MODE: Lazy<ExecutionMode> = Lazy::new(|| {
|
||||
@@ -72,8 +72,7 @@ pub fn set_auto_pipeline_enabled(enabled: bool) {
|
||||
}
|
||||
|
||||
pub static RUNTIME_PREFERRED_LANGUAGE: Lazy<RwLock<String>> = Lazy::new(|| {
|
||||
let initial = env::var("MOMENTRY_PREFERRED_LANGUAGE")
|
||||
.unwrap_or_else(|_| "zh-TW".to_string());
|
||||
let initial = env::var("MOMENTRY_PREFERRED_LANGUAGE").unwrap_or_else(|_| "zh-TW".to_string());
|
||||
RwLock::new(initial)
|
||||
});
|
||||
|
||||
@@ -234,14 +233,13 @@ pub static MEDIA_BASE_URL: Lazy<String> = Lazy::new(|| {
|
||||
});
|
||||
|
||||
pub static STORAGE_ROOT: Lazy<String> = Lazy::new(|| {
|
||||
env::var("MOMENTRY_STORAGE_ROOT")
|
||||
.unwrap_or_else(|_| {
|
||||
std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|p| p.parent().map(|d| d.join("var/sftpgo/data")))
|
||||
.map(|p| p.to_string_lossy().to_string())
|
||||
.unwrap_or_else(|| "var/sftpgo/data".to_string())
|
||||
})
|
||||
env::var("MOMENTRY_STORAGE_ROOT").unwrap_or_else(|_| {
|
||||
std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|p| p.parent().map(|d| d.join("var/sftpgo/data")))
|
||||
.map(|p| p.to_string_lossy().to_string())
|
||||
.unwrap_or_else(|| "var/sftpgo/data".to_string())
|
||||
})
|
||||
});
|
||||
|
||||
pub static SERVE_BASE_URL: Lazy<String> = Lazy::new(|| {
|
||||
|
||||
Reference in New Issue
Block a user