fix(mcp): démarrer session_manager dans le lifespan FastAPI
This commit is contained in:
+2
-1
@@ -23,7 +23,8 @@ async def lifespan(app: FastAPI):
|
|||||||
Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True)
|
Path(settings.data_dir, subdir).mkdir(parents=True, exist_ok=True)
|
||||||
await run_seed()
|
await run_seed()
|
||||||
await init_redis()
|
await init_redis()
|
||||||
yield
|
async with mcp.session_manager.run():
|
||||||
|
yield
|
||||||
await close_redis()
|
await close_redis()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user