From 89cf0dd12228f3223eefac235d55563a219a9c6c Mon Sep 17 00:00:00 2001 From: hmo Date: Tue, 11 Aug 2026 05:30:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20crontab=20=E6=9D=83=E5=A8=81=E6=A8=A1?= =?UTF-8?q?=E6=9D=BF(deploy/crontab)=E2=80=94=E2=80=94crontab=E7=BA=B3?= =?UTF-8?q?=E5=85=A5git=E7=AE=A1=E7=90=86,=E5=81=9C=E7=94=A8cron=5Fto=5Fxm?= =?UTF-8?q?pp=E5=8F=8C=E9=80=9A=E9=81=93(crontab=E7=89=88=E6=B3=A8?= =?UTF-8?q?=E9=87=8A=E4=BF=9D=E7=95=99)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/crontab | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 deploy/crontab diff --git a/deploy/crontab b/deploy/crontab new file mode 100644 index 00000000..c5ea3b6c --- /dev/null +++ b/deploy/crontab @@ -0,0 +1,53 @@ +@reboot /home/hmo/bin/start-agentmemory.sh +*/5 * * * * /home/hmo/bin/check-agentmemory.sh +* * * * * cd /home/hmo && /usr/bin/python3 /home/hmo/bin/qq-poll.py >> /home/hmo/.qq_poll.log 2>&1 +* * * * * /usr/bin/python3 -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:3020/', timeout=3)" 2>/dev/null || (cd /home/hmo && /usr/bin/python3 /home/hmo/bin/vc-webhook.py &) +@reboot /sbin/ethtool -s wlo1 wol d 2>/dev/null; /bin/sh -c 'echo off > /sys/class/net/wlo1/device/power/control' +*/2 * * * * /usr/local/bin/wifi-watchdog.sh +*/5 * * * * /usr/local/bin/xmpp-health.sh +# [2026-08-11停] 由hermes jobs替代, 恢复见docs/cron-to-xmpp-restore-20260811.md; 原: */2 * * * * cd /home/hmo/MoFin/deploy/profile-scripts && python3 cron_to_xmpp.py >> /home/hmo/.cron_to_xmpp.log 2>&1 +# [2026-08-11停] 服务顶层cron(7/23停摆)空转, 恢复见docs/cron-to-xmpp-restore-20260811.md; 原: */2 * * * * cd /home/hmo/web-dashboard && python3 session_to_cron_bridge.py >> /home/hmo/.session_bridge.log 2>&1 +*/10 * * * * cd /home/hmo/projects/sublimation && /usr/bin/python3 scripts/todo_scanner.py >> /home/hmo/.todo_scanner.log 2>&1 +* * * * * cd /home/hmo/projects/self-growing-knowledge && /usr/bin/python3 scripts/mohe_knowledge_relay.py >> /tmp/mohe_relay.log 2>&1 +@reboot cd /home/hmo/daily-stock-analysis && /home/hmo/MoFin/venv/bin/python main_dsa.py --serve-only --port 8001 --host 0.0.0.0 >> /tmp/dsa.log 2>&1 +# MoFin选股链路: 开盘时每30分钟更新一次板块数据 +*/30 9-15 * * 1-5 cd /home/hmo/MoFin/deploy/profile-scripts && /home/hmo/MoFin/venv/bin/python market_watch.py >> /tmp/market_watch.log 2>&1 +# MoFin 价格更新 — 交易日每2分钟刷一次(DB唯一价格源) +# MoFin 价格监控保活检查 — 每10分钟 +0 6 * * * cd ~/projects/self-growing-knowledge && python3 incidents/miner.py --bot hermes + +# AgentsMeeting auto-heal +*/5 * * * * cd /home/hmo/AgentsMeeting/gateway/scripts && /usr/bin/python3 auto_heal.py >> ../logs/auto_heal.log 2>&1 +# AgentsMeeting health pipeline +*/5 * * * * cd /home/hmo/AgentsMeeting/gateway/scripts && /usr/bin/python3 agents_health_check.py >> ../logs/health_check.log 2>&1 +0 8 * * * cd /home/hmo/AgentsMeeting/gateway/scripts && /usr/bin/python3 agents_daily_health.py >> ../logs/daily_health.log 2>&1 +*/10 * * * * cd /home/hmo/AgentsMeeting/gateway/scripts && /usr/bin/python3 self_todo_executor.py >> ../logs/todo_executor.log 2>&1 +# MoFin health pipeline +*/5 * * * * cd /home/hmo/MoFin && /usr/bin/python3 agents_health_check.py >> gateway/logs/health_check_cron.log 2>&1 +# Kimi usage collector (SSH to Windows, scp back) +# Kimi usage collector (SSH to Windows, scp back) + +# OCG usage collector (local) +*/10 * * * * /home/hmo/AgentsMeeting/gateway/scripts/ocg_collect.sh + +# Kimi usage collector (local Playwright, no SSH) +*/10 * * * * /home/hmo/AgentsMeeting/gateway/scripts/kimi_collect_local.sh +# WeChat QR notifier - send XMPP when logged out +*/2 * * * * cd /home/hmo/AgentsMeeting/gateway/scripts && /usr/bin/python3 wechat_qr_notifier.py >> ../logs/qr_notifier.log 2>&1 +*/2 * * * * cd /home/hmo/MoFin/deploy/profile-scripts && python3 kanban_xmpp_bridge.py >> /tmp/kanban_bridge.log 2>&1 +# 自成长知识库健康管线 +*/5 * * * * cd /home/hmo/projects/self-growing-knowledge/scripts && /usr/bin/python3 agents_health_check.py >> ../logs/health_check.log 2>&1 +*/5 * * * * cd /home/hmo/projects/self-growing-knowledge/scripts && /usr/bin/python3 auto_heal.py >> ../logs/auto_heal.log 2>&1 +*/15 * * * * cd /home/hmo/projects/self-growing-knowledge/scripts && /usr/bin/python3 wechat_e2e_check.py >> ../logs/e2e_check.log 2>&1 +0 */6 * * * cd /home/hmo/projects/self-growing-knowledge/scripts && /usr/bin/python3 self_analyzer.py >> ../logs/self_analyzer.log 2>&1 +50 8 * * 1-5 cd /home/hmo/MoFin/deploy/profile-scripts && python3 watchlist_auto_exit.py >> /tmp/watchlist_exit.log 2>&1 +10 8 * * 1-5 cd /home/hmo/MoFin/deploy/profile-scripts && bash parallel_batch.sh 4 all >> /tmp/parallel_batch_cron.log 2>&1 +*/2 9-15 * * 1-5 cd /home/hmo/MoFin/deploy/profile-scripts && timeout 60 python3 price_monitor.py >> /tmp/price_monitor_cron.log 2>&1 +# MoFin 新闻每日增量更新(东方财富翻页) +30 9,13,17 * * 1-5 cd /home/hmo/MoFin && /home/hmo/MoFin/venv/bin/python deploy/profile-scripts/news_collector.py --daily >> /tmp/news_daily.log 2>&1 +*/2 * * * * cd /home/hmo/projects/self-growing-knowledge && python3 scripts/task_worker.py >> logs/task_worker.log 2>&1 +0 3 * * * /home/hmo/scripts/backup_wewe.sh >> /home/hmo/scripts/backup_wewe.log 2>&1 +30 */6 * * * cd /home/hmo/scripts/wewe-rss-tools && python3 wewe_new_sync.py >> /home/hmo/docker-data/wewe-rss/sync_log.txt 2>&1 + +# MoFin 实盘数据累积(每日收盘后 15:05 交易日) +5 15 * * 1-5 cd /home/hmo/MoFin && /home/hmo/MoFin/venv/bin/python3 live_data_collector.py >> /tmp/live_data.log 2>&1