- src/rag/{unified(21模块),extractors/methodology,project_config} + api/methodology_routes.py(998行)
- 新薄入口 scripts/methodology_server.py(/health + /api/v1/methodology/*)
- env 化补丁:UPLOAD_JOBS_DIR/UPLOAD_OUTPUT_ROOT 支持 env 覆盖(数据根迁移免改代码)
- 影子 8001 冒烟:job 列表与生产 8000 完全一致(3/3)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
517 B
Bash
Executable File
14 lines
517 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# agent/methodology/scripts/status.sh —— 状态检查(进程 + /health)
|
|
set -uo pipefail
|
|
AGENT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
PORT="${1:-7920}"
|
|
PID_FILE="$AGENT_ROOT/run/methodology-$PORT.pid"
|
|
if [[ -f "$PID_FILE" ]] && kill -0 "$(cat "$PID_FILE")" 2>/dev/null; then
|
|
echo "Methodology RUNNING pid=$(cat "$PID_FILE") port=$PORT"
|
|
else
|
|
echo "Methodology NOT RUNNING (port=$PORT)"
|
|
fi
|
|
curl -s --max-time 5 "http://127.0.0.1:$PORT/health" 2>/dev/null | head -c 300
|
|
echo
|