Add timeout for apptask as well

This commit is contained in:
Girish Ramakrishnan
2019-10-14 14:16:15 -07:00
parent a19662bdfa
commit 1856fc05d9
+1 -1
View File
@@ -67,7 +67,7 @@ function scheduleTask(appId, taskId, callback) {
if (!fs.existsSync(path.dirname(logFile))) safe.fs.mkdirSync(path.dirname(logFile)); // ensure directory
tasks.startTask(taskId, { logFile }, function (error, result) {
tasks.startTask(taskId, { logFile, timeout: 20 * 60 * 60 * 1000 /* 20 hours */ }, function (error, result) {
callback(error, result);
delete gActiveTasks[appId];