node-resque
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -64,6 +64,4 @@ const path = require('path') | ||
let match = ('delayed:' + rTimestamp) | ||
let members = await this.connection.redis.smembers(this.connection.key('timestamps:' + item)) | ||
for (let i in members) { | ||
if (members[i] === match) { throw new Error('Job already enqueued at this time with same arguments') } | ||
} | ||
let foundMatch = await this.connection.redis.sismember(this.connection.key('timestamps:' + item), match) | ||
if (foundMatch === 1) { throw new Error('Job already enqueued at this time with same arguments') } | ||
@@ -70,0 +68,0 @@ await this.connection.redis.rpush(this.connection.key('delayed:' + rTimestamp), item) |
@@ -6,3 +6,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"homepage": "http://github.com/taskrabbit/node-resque", | ||
@@ -9,0 +9,0 @@ "repository": { |
@@ -1,4 +0,4 @@ | ||
# node-resque | ||
# node-resque: The best background jobs in node. | ||
**Distributed delayed jobs in nodejs**. Resque is a background job system based on [Redis](http://redis.io) (version 2.0.0 and up required). It includes priority queues, plugins, locking, delayed jobs, and more! This project is a very opinionated but API-compatible with [Resque](https://github.com/resque/resque) and [Sidekiq](http://sidekiq.org/). We also implement some of the popular Resque plugins, including [resque-scheduler](https://github.com/resque/resque-scheduler) and [resque-retry](https://github.com/lantins/resque-retry) | ||
**Distributed delayed jobs in nodejs**. Resque is a background job system backed by [Redis](http://redis.io) (version 2.0.0 and up required). It includes priority queues, plugins, locking, delayed jobs, and more! This project is a very opinionated but API-compatible with [Resque](https://github.com/resque/resque) and [Sidekiq](http://sidekiq.org/). We also implement some of the popular Resque plugins, including [resque-scheduler](https://github.com/resque/resque-scheduler) and [resque-retry](https://github.com/lantins/resque-retry) | ||
@@ -5,0 +5,0 @@ [![Nodei stats](https://nodei.co/npm/node-resque.png?downloads=true)](https://npmjs.org/package/node-resque) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
517781
1
3427