Condition to start processor at instance creation.
Denotes commands should retry indefinitely.
Amount of jobs that a single worker is allowed to work on in parallel.
Options for connecting to a Redis instance.
Number of seconds to long poll for jobs when the queue is empty.
Enable rate limiter
Duration of the lock for the job in milliseconds. The lock represents that a worker is processing the job. If the lock is lost, the job will be eventually be picked up by the stalled checker and move back to wait so that another worker can process it again.
The time in milliseconds before the lock is automatically renewed.
It is not recommended to modify this value, which is by default set to halv the lockDuration value, which is optimal for most use cases.
Amount of times a job can be recovered from a stalled state
wait state. If this is exceeded, the job is moved
Enable collect metrics.
Prefix for all queue keys.
You can provide an object specifying max age and/or count to keep. Default behavior is to keep the job in the completed set.
You can provide an object specifying max age and/or count to keep. Default behavior is to keep the job in the failed set.
This is an internal option that should not be modified.
More advanced options.
Specify if the connection is shared.
Skip lock renewal for this worker. If set to true, the lock will expire after lockDuration and moved back to the wait queue (if the stalled check is not disabled)
Skip stalled check for this worker. Note that other workers could still perform stalled checkd and move jobs back to wait for jobs being processed by this worker.
Number of milliseconds between stallness checks.
Generated using TypeDoc
Base Queue options