scheduler: inspectByName -> inspect
This commit is contained in:
@@ -45,7 +45,7 @@ async function runTask(appId, taskName) {
|
||||
|
||||
if (app.installationState !== apps.ISTATE_INSTALLED || app.runState !== apps.RSTATE_RUNNING || app.health !== apps.HEALTH_HEALTHY) return;
|
||||
|
||||
const [error, data] = await safe(docker.inspectByName(containerName));
|
||||
const [error, data] = await safe(docker.inspect(containerName));
|
||||
if (!error && data && data.State.Running === true) {
|
||||
const jobStartTime = new Date(data.State.StartedAt); // iso 8601
|
||||
if (new Date() - jobStartTime < JOB_MAX_TIME) return;
|
||||
|
||||
Reference in New Issue
Block a user