add task status endpoint
This commit is contained in:
@@ -12,8 +12,7 @@ from .routes import cars, health, tasks
|
||||
@asynccontextmanager
|
||||
async def lifespan(app: FastAPI):
|
||||
# Жизненный цикл.
|
||||
persistence: PersistenceService = app.state.persistence
|
||||
persistence.create_tables()
|
||||
# Таблицы создаются через Alembic-миграции (сервис migrate).
|
||||
yield
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user