From 481ea77bebbd9cea2966b0cb8f4e401650147633 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 19 Sep 2020 08:53:26 +0200 Subject: [PATCH] fix(process-jobs): also add name to lock call --- lib/utils/process-jobs.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/utils/process-jobs.js b/lib/utils/process-jobs.js index f6ee2c1..5544c22 100644 --- a/lib/utils/process-jobs.js +++ b/lib/utils/process-jobs.js @@ -117,6 +117,7 @@ module.exports = function(extraJob) { // Query to run against collection to see if we need to lock it const criteria = { _id: job.attrs._id, + name: job.attrs.name, lockedAt: null, nextRunAt: job.attrs.nextRunAt, disabled: {$ne: true}