fix: _role_poller 接受 app 参数(aiohttp on_startup 信号)

This commit is contained in:
yumoqing 2026-08-05 17:28:23 +08:00
parent 0bd9609532
commit 99cc19f9aa

View File

@ -432,7 +432,7 @@ def load_pipeline_service():
# Background poller: auto-dispatch submitted role_tasks to role agents
_logger = logging.getLogger("pipeline.agent_poller")
async def _role_poller():
async def _role_poller(app):
"""轮询 pipeline_tasks 中待执行的 role_task交给对应角色agent执行。"""
from sqlor.dbpools import DBPools
poll_db = DBPools()