chore(plugin): set hot-reload watcher interval to 60s

This commit is contained in:
liuwei
2026-04-16 13:57:37 +08:00
parent f0414e0dff
commit cb0d11e657
2 changed files with 8 additions and 3 deletions

View File

@@ -98,7 +98,8 @@ class Robot:
self.plugin_manager = PluginManager(plugin_dir=getattr(self.config, "plugin_dir", "plugins"))
self.plugin_manager.set_system_context(self.system_context)
self.plugins = self.plugin_manager.load_all_plugins()
self.plugin_manager.start_hot_reload_watcher(interval_seconds=2.0)
# 热加载改为低频扫描:每 60 秒检查一次插件文件变动
self.plugin_manager.start_hot_reload_watcher(interval_seconds=60.0)
# 加载插件
self.LOG.debug("插件系统初始化完成")