From 067265178cc94d855d36855bf281e27d2ea72460 Mon Sep 17 00:00:00 2001 From: Nehemiah Onyekachukwu Emmanuel Date: Tue, 26 Dec 2023 08:56:31 +0100 Subject: [PATCH] fix app lifespan --- agenta-backend/agenta_backend/main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/agenta-backend/agenta_backend/main.py b/agenta-backend/agenta_backend/main.py index fc4df89b92..832353525f 100644 --- a/agenta-backend/agenta_backend/main.py +++ b/agenta-backend/agenta_backend/main.py @@ -45,8 +45,7 @@ async def lifespan(application: FastAPI, cache=True): yield -# app = FastAPI(lifespan=lifespan) -app = FastAPI() +app = FastAPI(lifespan=lifespan) allow_headers = ["Content-Type"]