Spaces:
Runtime error
Runtime error
|
Download docs/api_docs/startup_verification_report.md from SandeepChakka/gridlock-sentinel: direct link, hf CLI and curl.
- Browser
- Download file 1.27 kB
-
https://huggingface.co/spaces/SandeepChakka/gridlock-sentinel/resolve/main/docs/api_docs/startup_verification_report.md
- Command line
-
hf download hf://spaces/SandeepChakka/gridlock-sentinel/docs/api_docs/startup_verification_report.md
-
curl -L -o startup_verification_report.md https://huggingface.co/spaces/SandeepChakka/gridlock-sentinel/resolve/main/docs/api_docs/startup_verification_report.md
1.27 kB
GRIDLOCK Startup Verification Report
Date: 2026-06-20
Dependency Installation
py -3.11 -m pip install -r backend\requirements.txt
Result: dependencies installed, including XGBoost and SentenceTransformers.
Static Runtime Check
py -3.11 -m compileall backend\app
Result: passed.
Startup Path
FastAPI startup performs:
- Singleton model registry load.
- Closure model validation.
- MongoDB Atlas connection.
- Redis cache initialization with graceful degradation.
Observed startup logs include:
Loaded asset closure_prediction_model_v2
Model class: XGBClassifier
Model registry initialized with 26 assets and 0 load errors
MongoDB URI host: gridlock.fja4wdu.mongodb.net
Connected to MongoDB database gridlock
Redis unavailable; continuing without cache
Production Failure Rules
- Closure model missing or unloadable: startup fails.
- MongoDB unavailable: startup fails unless
ALLOW_DEGRADED_MODE=true. - Redis unavailable: warning only, cache disabled.
Environment
- MongoDB Atlas is read from
backend/.envthroughMONGODB_URI. - Groq is read from
backend/.envthroughGROQ_API_KEY. - Redis is read from
backend/.envthroughREDIS_URL. - Secrets are excluded from Git by
.gitignore.