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:
+24
-1
@@ -27,7 +27,30 @@ DB_NAME = "momentry"
|
||||
DB_SCHEMA = os.environ.get("DATABASE_SCHEMA", "dev")
|
||||
QDRANT_URL = os.environ.get("QDRANT_URL", "http://localhost:6333")
|
||||
QDRANT_COLLECTION = os.environ.get("QDRANT_COLLECTION", "momentry_dev_rule1_v2")
|
||||
PG_BIN = "/Users/accusys/pgsql/18.3/bin"
|
||||
def _detect_pg_bin() -> str:
|
||||
candidate = os.environ.get("MOMENTRY_PG_BIN")
|
||||
if candidate and os.path.isdir(candidate):
|
||||
return candidate
|
||||
import shutil
|
||||
for d in (
|
||||
"/opt/homebrew/opt/postgresql@18/bin",
|
||||
"/opt/homebrew/opt/postgresql@16/bin",
|
||||
"/opt/homebrew/opt/postgresql@15/bin",
|
||||
"/opt/homebrew/opt/postgresql@14/bin",
|
||||
"/opt/homebrew/opt/postgresql/bin",
|
||||
"/usr/local/opt/postgresql@18/bin",
|
||||
"/usr/local/bin",
|
||||
"/usr/bin",
|
||||
):
|
||||
if os.path.isfile(os.path.join(d, "psql")):
|
||||
return d
|
||||
exe = shutil.which("psql")
|
||||
if exe:
|
||||
return str(Path(exe).parent)
|
||||
return "/Users/accusys/pgsql/18.3/bin"
|
||||
|
||||
|
||||
PG_BIN = _detect_pg_bin()
|
||||
|
||||
|
||||
def ts():
|
||||
|
||||
Reference in New Issue
Block a user