Skip to content

Commit

Permalink
fix(process-jobs): also add name to lock call
Browse files Browse the repository at this point in the history
  • Loading branch information
simllll committed Sep 19, 2020
1 parent 24f6a84 commit 481ea77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/process-jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 481ea77

Please sign in to comment.