Deployment prod

This commit is contained in:
Zakhar
2026-09-25 22:14:07 +03:00
parent d5602f6bde
commit 6c12d59a26
4 changed files with 3 additions and 23 deletions
-6
View File
@@ -56,16 +56,10 @@ async def lifespan(app: FastAPI):
watcher = asyncio.create_task(watch_and_reset())
app.state.youtrack_mcp = await YouTrackMCPClient(
str(os.getenv('YOUTRACK_MCP_SERVER')),
str(os.getenv('YOUTRACK_MCP_TOKEN')),
).connect()
yield
# ---- shutdown ----
watcher.cancel()
await app.state.youtrack_mcp.close()
app = FastAPI(lifespan=lifespan)