fix crash in scheduler

This commit is contained in:
Girish Ramakrishnan
2015-11-22 17:22:06 -08:00
parent 5c9abfe97a
commit 6625610aca
+2 -2
View File
@@ -182,11 +182,11 @@ function doTask(appId, taskName, callback) {
// NOTE: if you change container name here, fix addons.js to return correct container names
docker.createSubcontainer(app, app.id + '-' + taskName, [ '/bin/sh', '-c', gState[appId].schedulerConfig[taskName].command ], { } /* options */, function (error, container) {
appState.containerIds[taskName] = container.id;
appState.containerIds[taskName] = container.Id;
saveState(gState);
docker.startContainer(container.id, callback);
docker.startContainer(container.Id, callback);
});
});
});