BUILD148 — исправление OOM и запуска

This commit is contained in:
2026-09-18 18:57:00 +03:00
parent a25c633a0b
commit f6bfb75f89
3 changed files with 322 additions and 13 deletions

8
app.py
View File

@@ -29,7 +29,7 @@ from ui_builder import install_ui_builder
from khl_site.khl_data_center import APP as khl_site_app
BASE_DIR = Path(__file__).resolve().parent
BUILD_VERSION = "2026.09.18.5"
BUILD_VERSION = "2026.09.18.6"
# compatibility: BUILD_VERSION = "2026.08.26.1"
# compatibility: BUILD_VERSION = "2026.08.25.1"
# compatibility: BUILD_VERSION = "2026.08.24.15"
@@ -67,6 +67,12 @@ configure_hockey_vmix_settings(BASE_DIR)
app = FastAPI(title=f"Хоккейная панель управления / Stat2TV — build {BUILD_VERSION}")
print(f"[Hockey Build] {BUILD_VERSION}")
@app.get("/api/health", include_in_schema=False)
async def hockey_public_health() -> dict[str, Any]:
"""Unauthenticated liveness probe for systemd/deploy scripts."""
return {"ok": True, "build": BUILD_VERSION}
hockey_settings = HockeySettingsStore(BASE_DIR / "settings")
hockey_database = HockeyDatabase(BASE_DIR)
hockey_auth = HockeyAuthDependencies(create_auth_adapter(hockey_database))