deploy: auto commit docker changes 2026-07-09 22:54:47

This commit is contained in:
hajimi
2026-07-09 22:54:47 +08:00
parent 6d2302875b
commit 66fd64ef0f
6 changed files with 931 additions and 1 deletions
+27
View File
@@ -31,6 +31,7 @@
python main.py cba_news # 采集CBA新闻资讯
python main.py ai_comment_dispatch # Docker AI 评论调度
python main.py match_live_stream # 抓取赛事直播线路播放流
python main.py match_odds # 抓取第三方赛事赔率
python main.py article_content_fetch # 抓取资讯文章正文内容
python main.py all # 采集积分榜 + 赛程
python main.py single <season_id> # 采集单个联赛积分榜
@@ -61,6 +62,7 @@ TASK_ALERT_POLICY = {
"lottery_draw_force": "saved_if_candidates",
"ai_comment_dispatch": "saved_if_candidates",
"match_live_stream": "saved_if_candidates",
"match_odds": "saved_if_candidates",
}
DEFAULT_ACTION_TIMEOUT = 600
@@ -89,6 +91,7 @@ ACTION_TIMEOUTS = {
"dqd_worldcup": 600,
"ai_comment_dispatch": 1800,
"match_live_stream": 180,
"match_odds": 300,
}
@@ -543,6 +546,29 @@ async def cmd_match_live_stream():
return await asyncio.to_thread(run, db_config)
async def cmd_match_odds():
import asyncio
from match_odds import run
from src.core.config import load_config
cfg = load_config().database
db_config = {
"host": cfg.host,
"port": cfg.port,
"user": cfg.username,
"password": cfg.password,
"database": cfg.database,
"charset": cfg.charset,
"prefix": cfg.prefix,
}
result = await asyncio.to_thread(run, db_config)
prefix = "" if result.get("success") else ""
print(f"{prefix} {result.get('summary_text', '第三方赛事赔率抓取完成')}")
if result.get("error"):
print(f" {result['error']}")
return result
async def cmd_match_data():
from src.scheduler.task_runner import TaskRunner
async with TaskRunner() as runner:
@@ -859,6 +885,7 @@ def main():
"cba_news": cmd_cba_news,
"ai_comment_dispatch": cmd_ai_comment_dispatch,
"match_live_stream": cmd_match_live_stream,
"match_odds": cmd_match_odds,
"article_content_fetch": cmd_article_content_fetch,
"match_finish": cmd_match_finish,
"live_detail": cmd_live_detail,