fix: incorrect /ready response on slow schema load

This commit is contained in:
steve-chavez
2024-03-15 11:03:01 -05:00
committed by Steve Chavez
parent 4b289b1c97
commit 11d8da046c
5 changed files with 38 additions and 5 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ runAdmin conf@AppConfig{configAdminServerPort} appState settings observer =
admin :: AppState.AppState -> AppConfig -> (Observation -> IO ()) -> Wai.Application
admin appState appConfig observer req respond = do
isMainAppReachable <- isRight <$> reachMainApp (AppState.getSocketREST appState)
isSchemaCacheLoaded <- isJust <$> AppState.getSchemaCache appState
isSchemaCacheLoaded <- AppState.getSchemaCacheLoaded appState
isConnectionUp <-
if configDbChannelEnabled appConfig
then AppState.getIsListenerOn appState