fix 定时服务立即生效

fix #1615
This commit is contained in:
jxxghp
2024-03-08 16:22:53 +08:00
parent b5d7b6fb53
commit 851864cd49
4 changed files with 40 additions and 10 deletions

View File

@ -51,6 +51,13 @@ class ModuleManager(metaclass=Singleton):
if hasattr(module, "stop"):
module.stop()
def reload(self):
"""
重新加载所有模块
"""
self.stop()
self.load_modules()
def test(self, modleid: str) -> Tuple[bool, str]:
"""
测试模块