chore: baseline — ORM migration + systemd deploy + MCP server + daily check
- ORM migration: models/ops 重构 - deploy: 标准化 systemd timer/service 部署体系 - MCP server: 5 个只读工具(任务/状态/数据集) - daily check: 数据一致性巡检 - watch: task_watch 后台监控 - kline_daily: 麦蕊优先,时间门禁15:00 - 删除: task_industry_sector, task_sector_features
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# systemd 调度入口:单跑 kline_daily(评分核心依赖)
|
||||
set -u
|
||||
|
||||
PROJECT_ROOT="/home/gao/Development/quant_home/market_sync"
|
||||
LOG_DIR="$PROJECT_ROOT/logs"
|
||||
mkdir -p "$LOG_DIR"
|
||||
|
||||
TS=$(date +%Y%m%d_%H%M%S)
|
||||
LOG="$LOG_DIR/kline_daily_${TS}.log"
|
||||
|
||||
echo "[market-sync-kline-daily] start ts=$TS log=$LOG" | tee -a "$LOG"
|
||||
cd "$PROJECT_ROOT"
|
||||
.venv/bin/python -m app.entrypoints.cli sync kline_daily 2>&1 | tee -a "$LOG"
|
||||
EXIT_CODE=${PIPESTATUS[0]}
|
||||
echo "[market-sync-kline-daily] done exit_code=$EXIT_CODE" | tee -a "$LOG"
|
||||
exit $EXIT_CODE
|
||||
Reference in New Issue
Block a user