• 陈泽健's avatar
    fix(service-monitor): init_scheduler FLASK_DEBUG 默认值与 server.py 统一为 '0' · 0d84df9f
    陈泽健 提交于
    根因:schedule_service.py:383 的 FLASK_DEBUG 默认值为 '1',
    而 server.py:151 的默认值为 '0'。systemd 启动时未设
    FLASK_DEBUG 环境变量,导致 init_scheduler() 判定为
    debug 模式 + 非 reloader 父进程,直接 return 不初始化
    APScheduler —— 定时任务永远不执行。
    
    修复:默认值改为 '0',与 server.py 保持一致。
    systemd 服务文件也补充 Environment=FLASK_DEBUG=0 双保险。
    Co-Authored-By: 's avatarClaude <noreply@anthropic.com>
    0d84df9f
名称
最后提交
最后更新
.claude/skills Loading commit data...
Docs Loading commit data...
config Loading commit data...
deploy Loading commit data...
skill Loading commit data...
.dockerignore Loading commit data...
.env.example Loading commit data...
.gitignore Loading commit data...
ARCHITECTURE.md Loading commit data...
CLAUDE.md Loading commit data...
Dockerfile Loading commit data...
HANDOFF.md Loading commit data...
README.md Loading commit data...
docker-compose.yml Loading commit data...
requirements.txt Loading commit data...
trouble_handoff.md Loading commit data...