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:
@@ -24,4 +24,4 @@ EXPOSE 80
|
||||
CMD ["python", "datasource/flask_server.py", "--host", "0.0.0.0"]
|
||||
|
||||
# 运行定时任务调度器(如需使用Flask服务,取消上面注释并注释掉下面)
|
||||
# CMD ["python", "scripts/daily_scheduler.py", "--time", "09:00"]
|
||||
# CMD ["python", "rotation/daily_scheduler.py", "--time", "09:00"]
|
||||
Reference in New Issue
Block a user