Skip to main content

Overview

QueueOptions extends QueueBaseOptions and provides configuration for Queue instances.

Interface

Properties

connection

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

prefix

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

defaultJobOptions

DefaultJobOptions
Default options applied to all jobs added to this queue

streams

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

skipMetasUpdate

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

settings

AdvancedRepeatOptions
Advanced options for repeatable jobs

skipVersionCheck

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

skipWaitingForReady

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

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