Releases: SGrondin/bottleneck
Releases · SGrondin/bottleneck
v2.8.0
- To use ioredis instead of Node Redis, pass the following option to Bottleneck:
{ datastore: "ioredis" }
. ioredis supports Redis Cluster and Redis Sentinel - To use Redis Cluster, pass the following options to Bottleneck:
{ datastore: "redis", clusterNodes: [nodes] }
. See the ioredis cluster docs and the Bottleneck docs for more information
v2.7.2
v2.7.1
v2.7.0
- All limiters within a Group now share the same Redis connection. Standalone limiters continue to have their own limiters.
- Added the
timeout
option to limiters to allow freeing Redis state after a period of inactivity. - Fixed a bug when using Groups, Clustering, highWater and job expirations.
v2.6.0
v2.5.1
v2.5.0
v2.4.0
v2.3.1
counts(), jobStatus()
This release brings visibility into the status of limiters and jobs.
- Added
.counts()
which returns an object with the number of jobs in every stage of their lifecycle. - Added
.jobStatus()
. It takes a jobId and returns the status of that job. - Added
trackDoneStatus
, a new limiter option, defaulted to false. Setting it to true will make your limiter keep track ofDone
jobs in.counts()
and.jobStatus()
. It is false by default, since it involves remembering every jobId that has ever reached the Done stage, which could lead to a memory leak if your application processes tens or hundreds of millions of jobs between restarts.