Fixed job status when failing
This commit is contained in:
parent
fd9bfe277e
commit
f95e8ef7f2
@ -94,7 +94,7 @@ JobRunner.prototype._run = function (job, query, callback) {
|
||||
return self.jobBackend.get(job.job_id, callback);
|
||||
}
|
||||
|
||||
return self.jobBackend.setFailed(job, err, callback);
|
||||
return self.jobBackend.setFailed(job, err, query.index, callback);
|
||||
}
|
||||
|
||||
if (isLastQuery(job, query.index)) {
|
||||
|
Loading…
Reference in New Issue
Block a user