fix(agent): bind runtime tasks to app lifespan (#6303)

This commit is contained in:
InfinityPacer
2026-08-13 19:25:52 +08:00
committed by GitHub
parent e014604b1c
commit 3560918e12
8 changed files with 222 additions and 33 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ async def lifespan(app: FastAPI):
# 初始化路由
init_routers(app)
# 初始化模块
init_modules()
await init_modules()
if settings.MOVIEPILOT_SAFE_MODE:
print("MoviePilot safe mode enabled: skip plugins, scheduler, monitor, commands and workflow.")
else: