8f016f25df
- 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
33 lines
1.1 KiB
Desktop File
33 lines
1.1 KiB
Desktop File
[Unit]
|
|
Description=Market data 股票-节点映射 sync (mairui /hszg, weekly Sat 11:30)
|
|
Documentation=file:///home/gao/Development/quant_home/market_sync/bin/market_sync_stock_node_run.sh
|
|
After=network-online.target market-sync-morning.service
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
WorkingDirectory=/home/gao/Development/quant_home/market_sync
|
|
User=gao
|
|
Group=gao
|
|
|
|
# 入口脚本:单独跑 stock_node 一个 task
|
|
# mairui /hszg 数据每周六 11:00 更新 → 11:30 触发,留 30 min buffer
|
|
ExecStart=/home/gao/Development/quant_home/market_sync/bin/market_sync_stock_node_run.sh
|
|
|
|
# 硬上限 2h(1100+ 调用 + 写库 + retry buffer)
|
|
TimeoutStartSec=7200
|
|
|
|
# 不要 Restart=(oneshot 失败就让 OnFailure= 发通知,别自动重跑——
|
|
# 重跑会撞 mairui 配额窗口)
|
|
# Restart=no 是 oneshot 默认值
|
|
|
|
# 日志走 journald(journalctl -u market-sync-stock-node.service -f)
|
|
StandardOutput=journal
|
|
StandardError=journal
|
|
SyslogIdentifier=market-sync-stock-node
|
|
|
|
# 环境(不读 /etc/environment,只带这几个;.env 由 cli 内部 load_dotenv)
|
|
Environment=PYTHONUNBUFFERED=1
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |