Skip to main content

Overview

QueueOptions extends QueueBaseOptions and provides configuration for Queue instances.

Interface

Properties

connection

connection
ConnectionOptions
required
Options for connecting to a Redis instance (ioredis configuration or Redis client instance)

prefix

prefix
string
default:"'bull'"
Prefix for all queue keys in Redis

defaultJobOptions

defaultJobOptions
DefaultJobOptions
Default options applied to all jobs added to this queue

streams

streams.events.maxLen
number
default:"10000"
Max approximated length for the events stream

skipMetasUpdate

skipMetasUpdate
boolean
default:"false"
If true, the queue will not update metadata. Useful for read-only systems

settings

settings
AdvancedRepeatOptions
Advanced options for repeatable jobs

skipVersionCheck

skipVersionCheck
boolean
default:"false"
Avoid validation that Redis version is >= 5.0.0

skipWaitingForReady

skipWaitingForReady
boolean
default:"false"
Skip waiting for connection to be ready (useful for testing)

telemetry

telemetry
Telemetry
Telemetry client for distributed tracing and metrics

Examples

Basic Queue

With Default Job Options

With Custom Prefix

With Event Stream Limits

Read-Only Queue

With Shared Connection