add route to get platform status

This commit is contained in:
Girish Ramakrishnan
2022-11-30 19:54:32 +01:00
parent f27847950c
commit 79cb8ef251
5 changed files with 21 additions and 7 deletions

View File

@@ -199,7 +199,7 @@ function startBox(done) {
function (callback) {
process.stdout.write('Waiting for platform to be ready...');
async.retry({ times: 500, interval: 1000 }, function (retryCallback) {
if (platform._isReady) return retryCallback();
if (platform.getStatus().message === '') return retryCallback();
process.stdout.write('.');
retryCallback('Platform not ready yet');
}, function (error) {