From 5c5c151237d3f20acc55ee6b6e9ccdb336b3fa65 Mon Sep 17 00:00:00 2001 From: dgaubert Date: Thu, 31 Mar 2016 19:03:38 +0200 Subject: [PATCH] Added failed_reason to query in multiquery jobs --- batch/job_backend.js | 1 + 1 file changed, 1 insertion(+) diff --git a/batch/job_backend.js b/batch/job_backend.js index 7030a0ae..136f11f2 100644 --- a/batch/job_backend.js +++ b/batch/job_backend.js @@ -324,6 +324,7 @@ JobBackend.prototype.setFailed = function (job, error, index, callback) { callback = index; } else if (index || index === 0) { job.query[index].status = 'failed'; + job.query[index].failed_reason = error.message; redisParams = redisParams.concat('query', JSON.stringify(job.query)); }