OptionalautorunCondition to start processor at instance creation.
OptionalblockingDenotes commands should retry indefinitely.
OptionalconcurrencyAmount of jobs that a single worker is allowed to work on in parallel.
Options for connecting to a Redis instance.
OptionaldrainNumber of seconds to long poll for jobs when the queue is empty.
OptionallimiterEnable rate limiter
OptionallockDuration 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.
OptionallockThe 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.
OptionalmaxAmount of times a job can be recovered from a stalled state
to the wait state. If this is exceeded, the job is moved
to failed.
OptionalmaxDefines the maximum number of times a job is allowed to start processing, regardless of whether it completes or fails. Each time a worker picks up the job and begins processing it, the attemptsStarted counter is incremented. If this counter reaches maxStartedAttempts, the job will be moved to the failed state with an UnrecoverableError.
OptionalmetricsEnable collect metrics.
OptionalnameOptional worker name. The name will be stored on every job processed by this worker instance, and can be used to monitor which worker is processing or has processed a given job.
OptionalprefixPrefix for all queue keys.
OptionalremoveYou can provide an object specifying max age and/or count to keep. Default behavior is to keep the job in the completed set.
OptionalremoveYou can provide an object specifying max age and/or count to keep. Default behavior is to keep the job in the failed set.
OptionalrunThis is an internal option that should not be modified.
OptionalsettingsMore advanced options.
OptionalskipSkip 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)
OptionalskipSkip 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.
OptionalskipAvoid version validation to be greater or equal than v5.0.0.
OptionalskipSkip waiting for connection ready.
In some instances if you want the queue to fail fast if the connection is not ready you can set this to true. This could be useful for testing and when adding jobs via HTTP endpoints for example.
OptionalstalledNumber of milliseconds between stallness checks.
OptionaltelemetryTelemetry Addon
OptionaluseUse Worker Threads instead of Child Processes. Note: This option can only be used when specifying a file for the processor argument.
OptionalworkerSupport passing Worker Fork Options. Note: This option can only be used when specifying a file for the processor argument and useWorkerThreads is passed as false (default value).
OptionalworkerSupport passing Worker Threads Options. Note: This option can only be used when specifying a file for the processor argument and useWorkerThreads is passed as true.
Base Queue options