feat:下载器支持多选

This commit is contained in:
jxxghp
2024-03-09 18:25:04 +08:00
parent 15bdb694cc
commit 8b4495c857
5 changed files with 36 additions and 4 deletions

View File

@ -290,6 +290,8 @@ class Scheduler(metaclass=Singleton):
"""
更新插件定时服务
"""
if not self._scheduler:
return
# 移除该插件的全部服务
self.remove_plugin_job(pid)
# 获取插件服务列表
@ -332,6 +334,8 @@ class Scheduler(metaclass=Singleton):
"""
移除插件定时服务
"""
if not self._scheduler:
return
with self._lock:
# 获取插件名称
plugin_name = PluginManager().get_plugin_attr(pid, "plugin_name")
@ -351,6 +355,8 @@ class Scheduler(metaclass=Singleton):
"""
当前所有任务
"""
if not self._scheduler:
return []
with self._lock:
# 返回计时任务
schedulers = []