Skip to content

Commit 481ea77

Browse files
committed
fix(process-jobs): also add name to lock call
1 parent 24f6a84 commit 481ea77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/utils/process-jobs.js

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ module.exports = function(extraJob) {
117117
// Query to run against collection to see if we need to lock it
118118
const criteria = {
119119
_id: job.attrs._id,
120+
name: job.attrs.name,
120121
lockedAt: null,
121122
nextRunAt: job.attrs.nextRunAt,
122123
disabled: {$ne: true}

0 commit comments

Comments
 (0)