mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 16:40:20 -05:00
Change ResInsight to use ri-cloud-api as submodule (#14468)
This commit is contained in:
1 parent
0012a65922
commit
086ab43e0a
17 files changed
+383
-174
No files matched your search
@@ -249,13 +249,21 @@ void RimCloudDataSourceCollection::defineUiOrdering( QString uiConfigName, caf::
|
||||
// Cloud server group
|
||||
auto serverGroup = uiOrdering.addNewGroup( QString( "Cloud API Server %1" ).arg( RiaDefines::betaFeaturePostfix() ) );
|
||||
|
||||
auto* cloudApiService = RiaApplication::instance()->cloudApiService();
|
||||
bool isServerRunning = cloudApiService && cloudApiService->isRunning();
|
||||
QString serverStatus = "Server Status: ";
|
||||
if ( isServerRunning )
|
||||
auto* cloudApiService = RiaApplication::instance()->cloudApiService();
|
||||
bool isServerRunning = cloudApiService && cloudApiService->isRunning();
|
||||
|
||||
// A launched process is not yet a working server: uvicorn may still be booting, or may be about
|
||||
// to exit on a missing dependency. Only report "Running" once a health check has succeeded.
|
||||
bool isServerResponding = cloudApiService && cloudApiService->isResponding();
|
||||
QString serverStatus = "Server Status: ";
|
||||
if ( isServerResponding )
|
||||
{
|
||||
serverStatus += QString( "<font color='#228B22'>✔ Running (port %1)</font>" ).arg( cloudApiService->port() );
|
||||
}
|
||||
else if ( isServerRunning )
|
||||
{
|
||||
serverStatus += QString( "<font color='#FFA500'>… Starting (port %1)</font>" ).arg( cloudApiService->port() );
|
||||
}
|
||||
else
|
||||
{
|
||||
serverStatus += "<font color='#FFA500'>❌ Stopped</font>";
|
||||
|
||||
Reference in new issue
Block a user