generated from hjess/PythonTemplateProject
[main] Images images images
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 51s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 51s
This commit is contained in:
@@ -13,7 +13,7 @@ from app.services.image_service import ImageService
|
||||
class Application:
|
||||
def __init__(self):
|
||||
"""Initialize the FastAPI app and configure it."""
|
||||
self.app = FastAPI(lifespan=self._lifespan_event)
|
||||
self.app = FastAPI( lifespan = self._lifespan_event )
|
||||
self._set_image_sizes()
|
||||
self._setup_static_files()
|
||||
self._include_routers()
|
||||
@@ -21,6 +21,7 @@ class Application:
|
||||
|
||||
|
||||
|
||||
|
||||
@asynccontextmanager
|
||||
async def _lifespan_event(self, app: FastAPI):
|
||||
"""Lifespan event for startup and shutdown logic."""
|
||||
|
||||
Reference in New Issue
Block a user