mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
test: drain web agent owners before loop close
This commit is contained in:
@@ -212,7 +212,7 @@ async def shutdown_web_agent_background_tasks() -> None:
|
||||
|
||||
|
||||
async def wait_web_agent_background_tasks() -> None:
|
||||
"""等待已登记的 Web Agent 任务完成取消后的最终收尾。"""
|
||||
"""等待已登记的 Web Agent 任务完成最终收尾。"""
|
||||
tasks = tuple(_WEB_AGENT_BACKGROUND_TASKS)
|
||||
if tasks:
|
||||
await asyncio.gather(*tasks, return_exceptions=True)
|
||||
|
||||
Reference in New Issue
Block a user