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
29 lines
846 B
Desktop File
29 lines
846 B
Desktop File
[Unit]
|
||
Description=Market sync morning pre-market — stock_basic
|
||
Documentation=file:///home/gao/Development/quant_home/market_sync/bin/market_sync_morning_run.sh
|
||
After=network-online.target
|
||
Wants=network-online.target
|
||
|
||
[Service]
|
||
Type=oneshot
|
||
WorkingDirectory=/home/gao/Development/quant_home/market_sync
|
||
User=gao
|
||
Group=gao
|
||
|
||
# 早盘前只跑 stock_basic(确保最新股票列表+股本快照)
|
||
ExecStart=/home/gao/Development/quant_home/market_sync/bin/market_sync_morning_run.sh
|
||
|
||
# stock_basic ~9min + buffer = 1h 够用
|
||
TimeoutStartSec=3600
|
||
|
||
# 不要 Restart=(oneshot 失败就让 OnFailure= 发通知,别自动重跑)
|
||
|
||
# 日志走 journald(journalctl -u market-sync-morning -f)
|
||
StandardOutput=journal
|
||
StandardError=journal
|
||
SyslogIdentifier=market-sync-morning
|
||
|
||
Environment=PYTHONUNBUFFERED=1
|
||
|
||
[Install]
|
||
WantedBy=multi-user.target |