refactor: 优化启停逻辑

This commit is contained in:
jxxghp
2025-05-13 23:11:38 +08:00
parent 089ec36160
commit cf28e1d963
9 changed files with 97 additions and 56 deletions

View File

@@ -0,0 +1,14 @@
from scheduler import Scheduler
def init_scheduler():
"""
初始化定时器
"""
Scheduler()
def stop_scheduler():
"""
停止定时器
"""
Scheduler().stop()