add task status endpoint

This commit is contained in:
qananasikq
2026-04-10 15:13:33 +03:00
parent 62aafae793
commit 3870cf4d94
2 changed files with 21 additions and 2 deletions

View File

@@ -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