mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
refactor: unify host agent runtime access
This commit is contained in:
+2
-2
@@ -1580,7 +1580,7 @@ class Scheduler(ConfigReloadMixin, metaclass=SingletonClass):
|
||||
:param trigger_source: 触发入口,scheduled-自动调度,manual-显式立即执行
|
||||
:return: 执行是否成功及结果摘要
|
||||
"""
|
||||
from app.agent.runtime_loader import get_running_agent_manager
|
||||
from app.application.agent import get_running_agent_manager
|
||||
|
||||
try:
|
||||
manager = get_running_agent_manager()
|
||||
@@ -1993,7 +1993,7 @@ class Scheduler(ConfigReloadMixin, metaclass=SingletonClass):
|
||||
"""
|
||||
智能体心跳唤醒:检查并执行待处理的定时任务
|
||||
"""
|
||||
from app.agent.runtime_loader import get_running_agent_manager
|
||||
from app.application.agent import get_running_agent_manager
|
||||
|
||||
manager = get_running_agent_manager()
|
||||
if manager is None:
|
||||
|
||||
Reference in New Issue
Block a user