You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: defer graph init to background, prevent health-check timeout
Move RetrieverGraph construction out of module-level import in
conversations.py and into a background thread spawned during the
FastAPI lifespan. This lets the server start instantly so the
Docker health-check passes within the reduced 30 s start_period
(instead of timing out after 22+ min waiting for FAISS embedding).
- Replace module-level rg = RetrieverGraph(...) with lazy singleton
(get_graph / start_graph_init / reset_graph_state_for_testing)
- Add /conversations/ready readiness probe returning 'ready' or
'initializing'
- Conversation endpoints return 503 / stream error when graph is
not yet initialized
- Add readiness poll loop (30 min, 10 s intervals) before Run LLM CI
step in ci-secret.yaml
- Reduce Docker healthcheck start_period default from 1200 s to 30 s
- Update streaming tests to use new public reset_graph_state_for_testing()
Signed-off-by: Jack Luar <jluar@precisioninno.com>
---------
Signed-off-by: Jack Luar <jluar@precisioninno.com>
0 commit comments