refactor(scheduler): move daily_scheduler.py to rotation/ and add simple_rotation support

- Move scripts/daily_scheduler.py -> rotation/daily_scheduler.py
- Add run_simple_rotation() to execute simple_rotation.py via subprocess
- Add --strategy flag (simple/legacy/all) for flexible strategy selection
- Add --simple-config flag for custom simple rotation config path
- Update Dockerfile and docker-compose.yml path references
- Add configurable title to send_report_to_dingtalk()
This commit is contained in:
2026-06-02 01:16:34 +08:00
parent 5e11b6b690
commit 4791d3cf40
3 changed files with 133 additions and 37 deletions

View File

@@ -19,8 +19,8 @@ services:
# 挂载 results 目录(保存报告)
- ./results:/app/results
# 默认daemon模式运行只需简单命令即可
# command: ["python", "scripts/daily_scheduler.py"]
# command: ["python", "rotation/daily_scheduler.py"]
# 如需立即执行一次并退出:
# command: ["python", "scripts/daily_scheduler.py", "--run-now"]
# command: ["python", "rotation/daily_scheduler.py", "--now"]
# 如需执行一次后进入定时循环:
# command: ["python", "scripts/daily_scheduler.py", "--no-daemon"]
# command: ["python", "rotation/daily_scheduler.py", "--no-daemon"]