ignore apps in errored state

This commit is contained in:
Girish Ramakrishnan
2016-04-20 19:05:49 -07:00
parent d87b7dcb75
commit 5e9ea98b66
+2
View File
@@ -89,6 +89,8 @@ function resumeTasks(callback) {
apps.forEach(function (app) {
if (app.installationState === appdb.ISTATE_INSTALLED && app.runState === appdb.RSTATE_RUNNING) return;
if (app.installationState === appdb.ISTATE_ERROR) return;
debug('Creating process for %s (%s) with state %s', app.location, app.id, app.installationState);
startAppTask(app.id, NOOP_CALLBACK);
});