Files
outlookEmailPlus/outlook_web
胡绍康andClaude Opus 4.6 8738bd1fff refactor: 移除 legacy 依赖,迁移调度器到 services
新增文件:
- services/scheduler.py: 定时任务调度器服务
  - init_scheduler(): 初始化调度器
  - configure_scheduler_jobs(): 配置定时任务
  - scheduler_heartbeat_task(): 心跳任务
  - scheduled_refresh_task(): 定时刷新任务
  - should_autostart_scheduler(): 判断是否自动启动

更新文件:
- app.py: 移除 legacy 导入,使用 middleware 和 services/scheduler
- controllers/settings.py: 使用 services/scheduler 替代 legacy
- web_outlook_app.py: 直接从各模块导出兼容函数,移除 impl 代理

测试修复:
- tests/test_core_features.py: 修复 mock 从 impl 到 graph_service

架构改进:
- 完全移除对 outlook_web.legacy 的运行时依赖
- legacy.py 现仅作为参考保留,不再参与运行时调用

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 12:14:16 +08:00
..