The name of the queue.
Options for the queue.
An optional "Connection" class used to instantiate a Connection. This is useful for testing with mockups and/or extending the Connection class and passing an alternate implementation.
Readonly
nameThe name of the queue.
Options for the queue.
Returns a promise that resolves to a redis client. Normally used only by subclasses.
Returns the version of the Redis instance the client is connected to,
Returns the jobs that are in the "active" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Returns the jobs that are in the "completed" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Returns the jobs that are in the "delayed" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Returns the jobs that are in the "failed" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Job counts by type
Queue#getJobCountByTypes('completed') => completed count Queue#getJobCountByTypes('completed,failed') => completed + failed count Queue#getJobCountByTypes('completed', 'failed') => completed + failed count Queue#getJobCountByTypes('completed', 'waiting', 'failed') => completed + waiting + failed count
Rest
...types: JobType[]Returns the job counts for each type specified or every list/set in the queue by default.
Rest
...types: JobType[]An object, key (type) and value (count)
Returns the logs for a given Job.
the id of the job to get the logs for.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
if true, the jobs will be returned in ascending order.
Get queue metrics related to the queue.
This method returns the gathered metrics for the queue. The metrics are represented as an array of job counts per unit of time (1 minute).
Start point of the metrics, where 0 is the newest point to be returned.
End point of the metrics, where -1 is the oldest point to be returned.
Returns the jobs that are in the "waiting" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Returns the jobs that are in the "waiting" status.
zero based index from where to start returning jobs.
zeroo based index where to stop returning jobs.
Generated using TypeDoc
Description
Provides different getters for different aspects of a queue.