Update Job Status on Task Status Update in AEGIS
Now, when AEGIS sees a task update that includes the
`ok` key, dispositioning the task as either successful or
failed, we update the associated backup job.
Fixes
this.data[type][object.uuid][k] = object[k];
}
}
+ if (type == 'task' && 'ok' in object) {
+ var task = this.task(object.uuid);
+ if (task.job_uuid != '') {
+ var job = this.job(task.job_uuid);
+ if (job != undefined) {
+ job.healthy = task.ok;
+ }
+ }
+ }
return this;
},
