优化浏览器context复用

This commit is contained in:
2026-06-09 16:04:44 +08:00
parent bc0f7161c0
commit 3b8bdf09f7
4 changed files with 399 additions and 93 deletions
+1
View File
@@ -80,6 +80,7 @@ async def lifespan(app: FastAPI):
try:
yield
finally:
await container.session_manager.close()
await container.browser_pool.close()
await container.session_store.close()