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); }