Merge remote-tracking branch 'origin/master'

# Conflicts:
#	gateway/scripts/templates/dashboard.html
This commit is contained in:
hmo
2026-08-26 12:27:24 +08:00
3 changed files with 362 additions and 82 deletions
+7 -7
View File
@@ -28,17 +28,17 @@ SERVICES = [
},
{
"name": "article_processor",
"script": os.path.join(os.path.dirname(BASE), "self-growing-knowledge",
"scripts", "article_processor.py"),
"script": None, # 外部服务,由 self-growing-knowledge 项目管理,AgentsMeeting 不再启动
"args": [],
"workdir": os.path.join(os.path.dirname(BASE), "self-growing-knowledge"),
"pid_file": os.path.join(TEMP, ".article_processor.pid"),
"workdir": None,
"pid_file": None,
"port": 5810,
"health_url": "http://127.0.0.1:5810/health",
"health_url": "http://192.168.1.16:5810/health",
"accept_401": False,
"depends_on": [],
"log_files": lambda: [os.path.join(GATEWAY_DIR, "logs", "article_processor.log")],
"description": "微信文章全文抓取服务",
"remote": True, # 标记为远程外部服务
"log_files": lambda: [],
"description": "微信文章全文抓取服务(外部,self-growing-knowledge)",
},
{
"name": "dashboard",
@@ -25,6 +25,12 @@ GATEWAY_DIR = SCRIPT_DIR.parent
TEMP_DIR = GATEWAY_DIR / "temp"
os.makedirs(str(TEMP_DIR), exist_ok=True)
# 停止标记:存在此文件时脚本立即退出
STOP_FILE = SCRIPT_DIR / "STOP_SENSNOVA_COLLECT"
if STOP_FILE.exists():
print(f"[STOPPED] {STOP_FILE.name} exists, exiting.")
sys.exit(0)
OUTPUT_FILE = TEMP_DIR / "usage_stats_sensenova.json"
PROVIDER = "sensenova"