Remove verbose logs

This commit is contained in:
Girish Ramakrishnan
2020-05-24 11:33:42 -07:00
parent bdcc5c0629
commit 67a931c4b8
2 changed files with 0 additions and 18 deletions

View File

@@ -143,8 +143,6 @@ function runTask(appId, taskName, callback) {
callback = callback || NOOP_CALLBACK;
debug(`runTask: running task ${taskName} of ${appId}`);
apps.get(appId, function (error, app) {
if (error) return callback(error);
@@ -164,14 +162,10 @@ function runTask(appId, taskName, callback) {
}
}
debug(`runTask: removing any old task ${taskName} of app ${app.fqdn}`);
killContainer(containerName, function (error) {
if (error) return callback(error);
const cmd = gState[appId].schedulerConfig[taskName].command;
debug(`runTask: starting task ${taskName} of app ${app.fqdn} with cmd ${cmd}`);
// NOTE: if you change container name here, fix addons.js to return correct container names
docker.createSubcontainer(app, containerName, [ '/bin/sh', '-c', cmd ], { } /* options */, function (error, container) {
if (error) return callback(error);