# 判断交易日
python3 scripts/is_trading_day.py
# 执行完整推送流程(代码负责)
python3 scripts/auto_push_system.py
# 执行推送监控(Agent负责)
python3 scripts/push_monitor.py
根据 docs/PUSH_WORKFLOW_OPTIMIZATION.md,建议配置:
# 工作日8:00 - 自动推送(代码负责,Agent监控)
0 8 * * 1-5 cd /Users/variya/.openclaw/workspace/projects/a-stock-advisor && /opt/homebrew/bin/python3 scripts/auto_push_system.py >> logs/auto_push.log 2>&1
# 工作日8:05 - 推送监控(Agent负责)
5 8 * * 1-5 cd /Users/variya/.openclaw/workspace/projects/a-stock-advisor && /opt/homebrew/bin/python3 scripts/push_monitor.py >> logs/push_monitor.log 2>&1
# 工作日18:30 - 日报推送
30 18 * * 1-5 cd /Users/variya/.openclaw/workspace/projects/a-stock-advisor && /opt/homebrew/bin/python3 scripts/auto_push_system.py >> logs/auto_push.log 2>&1
Cron Schedule
|
→ push_monitor.py (Agent层)
| → is_trading_day.py (判断交易日)
| → check_push_system_health() (健康检查)
|
→ auto_push_system.py (代码层)
| → AlphaStockSelector (选股)
| → PortfolioTracker (持仓)
| → RebalanceStrategy (换仓)
| → RiskControlSystem (风控)
| → FeishuPusher (推送)
|
→ 返回 (success, message)
|
→ 判断结果,处理异常
→ 生成告警(如果需要)
验证日期: 2026-03-02
状态: ✓ 所有验证通过