mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 05:31:52 +00:00
fix(scheduler): schedule_jobs 后重置 _terminating 标志位,修复分析任务静默跳过 (#130 @Dongmayyys)
This commit is contained in:
@@ -149,6 +149,10 @@ class AutoScheduler:
|
||||
# 先清理旧任务
|
||||
self.unschedule_jobs(context)
|
||||
|
||||
# unschedule_jobs 会将 _terminating 置为 True(用于关闭场景),
|
||||
# 但 schedule_jobs 表示插件仍在运行,需要重置终止标志位
|
||||
self._terminating = False
|
||||
|
||||
if not self.config_manager.get_enable_auto_analysis():
|
||||
logger.info("自动分析功能未启用,不注册定时任务")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user