mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
fix(runtime): 收口调度与事件异步任务生命周期 (#6415)
This commit is contained in:
@@ -122,6 +122,11 @@ def _build_scheduler_for_plugin_reload(jobs: dict, backend) -> Scheduler:
|
||||
scheduler._lock = threading.RLock()
|
||||
scheduler._jobs = jobs
|
||||
scheduler._scheduler = backend
|
||||
scheduler._lifecycle_state = "running"
|
||||
scheduler._handles = {}
|
||||
scheduler._job_generations = {}
|
||||
scheduler._active_job_generations = {}
|
||||
scheduler._agent_task_reservations = {}
|
||||
return scheduler
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user