mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
refactor: 优化启停逻辑
This commit is contained in:
14
app/startup/scheduler_initializer.py
Normal file
14
app/startup/scheduler_initializer.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from scheduler import Scheduler
|
||||
|
||||
|
||||
def init_scheduler():
|
||||
"""
|
||||
初始化定时器
|
||||
"""
|
||||
Scheduler()
|
||||
|
||||
def stop_scheduler():
|
||||
"""
|
||||
停止定时器
|
||||
"""
|
||||
Scheduler().stop()
|
||||
Reference in New Issue
Block a user