Files
momentry_core/scripts/stop_all_services.sh
T
Accusys 63fbbe1225 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
2026-10-12 10:00:51 +08:00

72 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
# Momentry Core 停止脚本
# 用途:停止所有 Momentry 服务
set -e
echo "===================================="
echo " Momentry Core 停止脚本"
echo "===================================="
echo ""
# 1. 停止 Momentry Server
echo "1️⃣ 停止 Momentry Server..."
if pgrep -f "momentry server" > /dev/null; then
echo " 找到进程:"
pgrep -f "momentry server" | xargs ps -p | tail -n +2
echo " 正在停止..."
pkill -f "momentry server"
sleep 2
if pgrep -f "momentry server" > /dev/null; then
echo " ❌ 进程仍在运行,强制终止..."
pkill -9 -f "momentry server"
sleep 1
fi
echo " ✅ Momentry Server 已停止"
else
echo " ✅ Momentry Server 未运行"
fi
echo ""
# 2. 询问是否停止其他服务
echo "2️⃣ 其他服务状态:"
echo ""
# PostgreSQL
if pg_isready -q 2>/dev/null; then
echo " ✅ PostgreSQL: 运行中"
else
echo " ⚠️ PostgreSQL: 未运行"
fi
# Redis
if redis-cli ping 2>/dev/null | grep -q PONG; then
echo " ✅ Redis: 运行中"
else
echo " ⚠️ Redis: 未运行"
fi
# LLM Service
if curl -s http://localhost:8080/v1/models 2>/dev/null | grep -q "gemma"; then
echo " ✅ LLM Service: 运行中"
else
echo " ⚠️ LLM Service: 未运行"
fi
echo ""
echo "===================================="
echo " 🛑 Momentry Server 已停止"
echo "===================================="
echo ""
echo "提示: 数据库和 LLM 服务仍在运行"
echo "如需停止所有服务,请手动执行:"
echo " brew services stop postgresql@14"
echo " brew services stop redis"
echo " launchctl stop gui/$(id -u)/com.momentry.chat-llamacpp"
echo ""