node-resque
Advanced tools
Comparing version 5.5.3 to 5.5.4
@@ -121,5 +121,4 @@ // To read notes about the master locking scheme, check out: | ||
let lockedByMe = await this.connection.redis.setnx(masterKey, this.options.name) | ||
let lockedByMe = await this.connection.redis.set(masterKey, this.options.name, 'NX', 'EX', this.options.masterLockTimeout) | ||
if (lockedByMe === true || lockedByMe === 1) { | ||
await this.connection.redis.expire(masterKey, this.options.masterLockTimeout) | ||
return true | ||
@@ -126,0 +125,0 @@ } |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "5.5.3", | ||
"version": "5.5.4", | ||
"homepage": "http://github.com/taskrabbit/node-resque", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -427,3 +427,3 @@ # node-resque: The best background jobs in node. | ||
"add": { | ||
plugins: [ require('Myplugin') ], | ||
plugins: [ require('Myplugin').Myplugin ], | ||
pluginOptions: { | ||
@@ -430,0 +430,0 @@ MyPlugin: { thing: 'stuff' }, |
533743
3778