npm / bullmq
bullmq
What changed in bullmq 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-25.
48 breaking1 security26 new APIs and options7 performance5 behavior and defaults2 tooling85 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbullmq 677 changes
Breaking changes 34
The unused count option property was removed from schedulers because it must be internal.
Fails fast when the SQL loader directory cannot be resolved.
PostgreSQL schema objects no longer use a redundant bullmq_ prefix.
Replaces the optional Connection constructor parameter with an optional BackendFactory.
The public Redis implementation export is removed; use the backend APIs instead.
The deprecated option is removed; use deduplication instead.
The deprecated event is removed; listen for deduplicated instead.
Named as the event to listen for instead of the removed debounced event.
Now distinguishes parent and leaf nodes; deduplication is no longer allowed on parent flow nodes.
No longer installed as a direct dependency and is now an optional peer dependency; Redis users must install it explicitly.
The deprecated property is removed; use Job#deduplicationId instead.
Named as the replacement for the removed Job#debounceId property.
Removed from the Node.js API; use UnrecoverableError instead.
Telemetry uses JobState in place of the removed deprecated JobStatus member.
The paused job state is removed from JobType.
Telemetry adapters are now required to implement createGauge().
The legacy property is removed from Job and JobJson.
The minimum supported Node.js version is now 14.17.0.
The repeat option is removed; migrate recurring jobs to Job Schedulers.
Removed from Queue; access the raw Redis client through the RedisQueueBackend returned by getBackend().
The default result no longer includes the paused state; jobs in a paused queue are represented as waiting.
Removed with the legacy repeatable jobs APIs; migrate recurring jobs to Job Schedulers.
Removed from Queue as high-level classes no longer expose Redis internals.
The legacy Repeat class is removed; migrate recurring jobs to Job Schedulers.
No longer accepts the cron-parser currentDate option.
No longer accepts the cron-parser nthDayOfWeek option.
No longer accepts the utc option; use tz: 'UTC' instead of utc: true.
The public Redis implementation export is removed; use the backend APIs instead.
The deprecated telemetry attribute is removed; workers no longer set JobFinishedTimestamp on spans.
The deprecated telemetry attribute is removed; telemetry uses JobState.
Named as the replacement for Job#discard().
Removed as high-level classes no longer expose Redis internals.
Now asynchronous, returns Promise<void>, and must be awaited.
Now resolves to void instead of the Redis client.
Security 1
The stalled checker is detached from the telemetry context to prevent trace leaks.
New APIs and options 7
Queue users can count delayed jobs scheduled before a timestamp.
Deduplication supports a schedule option.
Adds support for reliable realtime messaging.
The :ssl option is forwarded to the Postgrex connection.
Job and Worker gain a generic ProgressType parameter, allowing progress types to be specified.
Provides access to the backend; use its RedisQueueBackend result to access the raw Redis client.
Introduces an abstraction for pluggable queue backends, alongside Redis and PostgreSQL backends.
Performance 1
Uses LPOS for the keepLastIfActive membership check, improving deduplication performance.
Behavior and default changes 3
Postgres schema migrations are now explicit.
ioredis is now optional, so developers no longer need it as a required dependency.
Telemetry now reports the number of cleaned jobs instead of recording the complete array of job IDs.
Fixes and other changes 31
A claimable job is no longer reported while the queue is maxed.
Removes the deduplication key associated with a parent job when that job is removed.
The processing span now records original job errors.
Waiting jobs are now counted while the queue is paused in PostgreSQL.
Worker threads now finish their current job when close(true) is called.
Calling connect() to reopen a node-redis client now clears its ended status.
Relay formats exclusive time bounds without precision loss.
Parent release is deferred until all children are added in the Python, Elixir, Rust, and .NET clients.
Preserves the last error when maxStartedAttempts is reached.
Resuming after pause(true) wakes the worker's main loop.
In Valkey Glide cluster mode, INFO is routed to a single node.
Retrying a finished job now respects its priority.
Children retried by retryJobs are moved back to their parent’s dependencies.
SQL is inlined at build time to restore support for single-file bundlers.
Stops infinite connection-error retries during shutdown.
Connection options are inferred for the selected backend instead of hiding mismatches with casts.
Retries the LISTEN connection after a failed connect.
Deduplication keys are removed when the corresponding job key no longer exists, fixing stale deduplication state in the listed language clients.
Nested duplicate() calls are now allowed on the lazy Bun adapter.
The worker keeps its blocking client alive while parked in reconnecting.
Under Bun, duplicate() now targets the correct server.
Under Bun, reconnect now targets the correct server.
The worker delegates maximumBlockTimeout to the backend.
Resolves the priv SQL directory at runtime for Mix releases.
Processing deferred failures no longer affects the rate limit.
Provides the right key values when moving stalled jobs to the wait queue.
Flow now allows parent options to come from the root parent.
The completed event’s returnvalue is typed as the deserialized value, so event consumers receive the corrected type.
Avoids a deep ioredis import so the postgres backend works without ioredis internals.
Workers recover blocking reads that never settle after a reconnect.
Adds missing SQL files to release packages for Elixir and Python users.
bullmq 586 changes
Breaking changes 7
A stalled job is moved to failed when fetched manually.
Enforces a maximum priority of 2^21-1 to preserve FIFO ordering at the boundary.
The JobJsonSandbox interface no longer includes returnvalue.
The debounce option was removed from the flow producer.
The deduplication option was removed from the flow producer.
A connection must be passed; the worker throws an error if it is missing.
Markers use a dedicated Redis key instead of a special Job ID.
New APIs and options 16
Adds the createScripts method to flow-producer for extensions.
Adds a client adapter for using Valkey Glide with BullMQ.
BullMQ has an initial implementation of Rust support.
Adds support for node-redis and Bun’s native Redis client, expanding the Redis clients developers can use with BullMQ.
Adds a getDependencies proxy for sandboxed processors.
Adds a getDependenciesCount proxy for jobs in the sandbox.
Adds an option for at-least-once-after-active deduplication semantics.
OpenTelemetry supports a gauge metric when counting jobs by state.
Sandboxed processors gain cancelation support.
Metrics are enabled for OpenTelemetry.
A datatype was added for version differentiation in the connection area.
Adds support for the removeDeduplicationKey method.
Adds job cancellation, allowing developers to cancel jobs.
Adds support for the getMeta method.
Adds the getGlobalRateLimit method to the queue API.
A skipAttempt option is available when manually moving a job.
Performance 6
flow-producer reuses the queue's shared Scripts instance in jobs, improving performance.
Removes per-command serialization to enable implicit pipelining.
Allows fetching the next job when moving a job to delayed, improving performance.
Applies a limit when removing jobs by max age.
Workers promote delayed jobs while the queue is rate limited.
The worker calls moveToActive after special errors, improving performance.
Behavior and default changes 2
Complete, retry, delay, and failed spans now include the job name and id as telemetry attributes.
Retrying a job can now reset its attemptsMade and attemptsStarted attributes.
Tooling 2
Methods in worker.py now have type hints, helping developers understand and check their types.
The Python Timer class now has type hints, improving type information for developers using it.
Fixes and other changes 53
Blocking client recovery is backported to v5.x, which may affect worker recovery behavior.
Prevents an unhandled rejection when a connection's initialization fails before an error listener is attached.
Telemetry now emits job.state while preserving compatibility with job.status.
Jobs are retrieved in the same transaction under getJobs.
Suppresses ConnectionClosedError during teardown when using Bun.
Matches Bun RedisClient callback types, improving compatibility when using BullMQ with Bun.
Workers now emit the active event for all jobs moved to active.
When re-upserting under the same id, the scheduler now walks past stale slots.
Preserves child_process exports in sandbox mode when using null stdio.
Sandbox children that fail initialization are killed, and refusal errors are surfaced.
Fixes a potential integer-to-string conversion issue for job IDs.
upsertJobScheduler now respects the offset option when scheduling jobs.
The job-scheduler Lua helper now coerces string offsets.
Corrected the number type for the delay event.
Uses the correct data structure when retrying a failed child with ignoreDependencyOnFailure.
Accept a plain node-redis createClient result without requiring a cast.
Stalled jobs are failed if their scheduler no longer exists.
Changed NodeRedisRawClient to be node-redis compliant, improving compatibility for TypeScript integrations.
Handles cluster reconnection with timeouts.
Custom jobId is preserved when requeuing keepLastIfActive proto-jobs.
Typing on NodeRedisRawClient options is more permissive, allowing a wider range of option types.
BullMQ no longer mutates ioredis, avoiding unintended changes to the Redis client.
Workers stop fetching next jobs when closing during manual job movement.
Respects parent attribute deletion from a child when calling removeChildDependency.
The first 'every' job is now aligned to the next offset slot.
Reconnects blocking cluster clients that became wedged.
FlowProducer.add() now surfaces ParentJobNotExist errors.
Adds total counters to the Prometheus export for accurate counts when jobs are automatically removed.
The worker uses the scheduler registry to discriminate repeatable keys.
Handles the ioredis Cluster connect status in waitUntilReady, so readiness checks work with Cluster connections.
Uses slice reversal instead of reverse(), which returns None.
Corrects an unsafe type cast so getJob includes undefined in its return type.
Workers resume processing after a pause when using doNotWaitActive.
The worker emits the active event as soon as it gets the next job.
Correctly propagates the root jobId from pipeline results.
Added missing type declarations to the SandboxedJob interface.
Cancellation uses the native AbortController implementation when one is available.
Flow deduplication is now allowed from a root parent, including in Python and Elixir.
Process span attributes now use job timestamps.
Orphaned jobs are removed when auto-remove is enabled.
Non-BullMQ messages are now ignored in the sandbox.
Handles an empty scheduler hash fallback.
Errors from repeat or job-scheduler instances are now forwarded, making those errors observable to developers using BullMQ.
redisOptions are merged when duplicating a Redis cluster connection.
Telemetry now sends the most updated attemptsMade value when a job finishes.
Prevents lock errors when a job is no longer in the active state.
Connection error checking now considers the error code.
Changing every in an upsert no longer resets the iterations.
Calling updateJobProgress now emits a progress event.
Fixes changes not being applied to an existing scheduled job when using upsertJobScheduler.
Workers only emit an error when moveToActive fails, and emit it once when a failure happens in moveToFinished.
Calling the queue remove method now emits the removed event.
The Python Queue and Worker use unified Redis connection arguments.
bullmq 45 changes
Breaking changes 2
Priority is stored in its own sorted set, so duplication is no longer needed.
The job method update is renamed to updateData.
New APIs and options 2
Prioritized jobs are added as a new state as part of faster priority jobs.
A new queue method, removeDeprecatedPriorityKey, is available.
Fixes and other changes 1
The Python xtrim method now passes the right parameters.
bullmq 36 changes
Breaking changes 5
Backoff strategy object mapping is replaced by a single function.
The cron option is removed in favor of the pattern option.
The global rate limit implementation is improved.
Rate limiting by group keys is removed in favor of a simpler rate-limit implementation.
The pattern option replaces cron for repeat configuration.
New APIs and options 1
Support for dynamic rate limiting is added.