From 4b96ccbcc2db922d9aea100d741ff4d992c0449f Mon Sep 17 00:00:00 2001 From: Pablo Carranza Velez Date: Mon, 11 Dec 2017 11:03:04 -0800 Subject: [PATCH] Avoid marking the supervisor as unhealthy if update is not happening because it's in offline mode Change-Type: patch Signed-off-by: Pablo Carranza Velez --- src/application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.coffee b/src/application.coffee index 98df43e7..ccb7fe14 100644 --- a/src/application.coffee +++ b/src/application.coffee @@ -137,7 +137,7 @@ application.localMode = false application.healthy = -> timeSinceLastCycle = process.hrtime(updateStatus.lastFullUpdateCycle)[0] * 1000 - return updateStatus.currentlyDownloading or timeSinceLastCycle - updateStatus.timeSpentPulling <= 2 * config.appUpdatePollInterval + return bootstrap.offlineMode or updateStatus.currentlyDownloading or timeSinceLastCycle - updateStatus.timeSpentPulling <= 2 * config.appUpdatePollInterval application.logSystemMessage = logSystemMessage = (message, obj, eventName) -> logger.log({ m: message, s: 1 })