Kill backup task after 12 hours

this will automatically notify by email

part of #649
This commit is contained in:
Girish Ramakrishnan
2019-10-11 18:59:56 -07:00
parent 34c53694a0
commit 43fd207164
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1024,7 +1024,7 @@ function startBackupTask(auditSource, callback) {
eventlog.add(eventlog.ACTION_BACKUP_START, auditSource, { taskId });
tasks.startTask(taskId, {}, function (error, result) {
tasks.startTask(taskId, { timeout: 12 * 60 * 60 * 1000 /* 12 hours */ }, function (error, result) {
locker.unlock(locker.OP_FULL_BACKUP);
const errorMessage = error ? error.message : '';