From 578c43b1a8cf192207a29309fe1d471882406aef Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 6 Oct 2016 18:27:38 +0200 Subject: [PATCH] Multiple queries jobs pushed as first job between queries --- NEWS.md | 1 + batch/job_runner.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index d21ee7a8..db51fd4f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -3,6 +3,7 @@ Announcements: * limited batch queries to 12 hours + * Multiple queries jobs pushed as first job between queries. 1.37.1 - 2016-10-05 diff --git a/batch/job_runner.js b/batch/job_runner.js index fef9ac58..cf82ddec 100644 --- a/batch/job_runner.js +++ b/batch/job_runner.js @@ -82,7 +82,7 @@ JobRunner.prototype._run = function (job, query, profiler, callback) { return callback(null, job); } - self.jobQueue.enqueue(job.data.job_id, job.data.host, function (err) { + self.jobQueue.enqueueFirst(job.data.job_id, job.data.host, function (err) { if (err) { return callback(err); }