unstale

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 init

@unstale/cli on npm

bullmq 677 changes

Breaking changes 34

  • The unused count option property was removed from schedulers because it must be internal.

    6.7.5release notes

  • Fails fast when the SQL loader directory cannot be resolved.

    6.0.8release notes

  • PostgreSQL schema objects no longer use a redundant bullmq_ prefix.

    6.0.3release notes

  • Replaces the optional Connection constructor parameter with an optional BackendFactory.

    6.0.0release notes

  • The public Redis implementation export is removed; use the backend APIs instead.

    6.0.0release notes

  • The deprecated option is removed; use deduplication instead.

    6.0.0release notes

  • The deprecated event is removed; listen for deduplicated instead.

    6.0.0release notes

  • Named as the event to listen for instead of the removed debounced event.

    6.0.0release notes

  • Now distinguishes parent and leaf nodes; deduplication is no longer allowed on parent flow nodes.

    6.0.0release notes

  • No longer installed as a direct dependency and is now an optional peer dependency; Redis users must install it explicitly.

    6.0.0release notes

  • The deprecated property is removed; use Job#deduplicationId instead.

    6.0.0release notes

  • Named as the replacement for the removed Job#debounceId property.

    6.0.0release notes

  • Removed from the Node.js API; use UnrecoverableError instead.

    6.0.0release notes

  • Telemetry uses JobState in place of the removed deprecated JobStatus member.

    6.0.0release notes

  • The paused job state is removed from JobType.

    6.0.0release notes

  • Telemetry adapters are now required to implement createGauge().

    6.0.0release notes

  • The legacy property is removed from Job and JobJson.

    6.0.0release notes

  • The minimum supported Node.js version is now 14.17.0.

    6.0.0release notes

  • The repeat option is removed; migrate recurring jobs to Job Schedulers.

    6.0.0release notes

  • Removed from Queue; access the raw Redis client through the RedisQueueBackend returned by getBackend().

    6.0.0release notes

  • The default result no longer includes the paused state; jobs in a paused queue are represented as waiting.

    6.0.0release notes

  • Removed with the legacy repeatable jobs APIs; migrate recurring jobs to Job Schedulers.

    6.0.0release notes

  • Removed from Queue as high-level classes no longer expose Redis internals.

    6.0.0release notes

  • The legacy Repeat class is removed; migrate recurring jobs to Job Schedulers.

    6.0.0release notes

  • No longer accepts the cron-parser currentDate option.

    6.0.0release notes

  • No longer accepts the cron-parser nthDayOfWeek option.

    6.0.0release notes

  • No longer accepts the utc option; use tz: 'UTC' instead of utc: true.

    6.0.0release notes

  • The public Redis implementation export is removed; use the backend APIs instead.

    6.0.0release notes

  • The deprecated telemetry attribute is removed; workers no longer set JobFinishedTimestamp on spans.

    6.0.0release notes

  • The deprecated telemetry attribute is removed; telemetry uses JobState.

    6.0.0release notes

  • Named as the replacement for Job#discard().

    6.0.0release notes

  • Removed as high-level classes no longer expose Redis internals.

    6.0.0release notes

  • Now asynchronous, returns Promise<void>, and must be awaited.

    6.0.0release notes

  • Now resolves to void instead of the Redis client.

    6.0.0release notes

Security 1

  • The stalled checker is detached from the telemetry context to prevent trace leaks.

    6.3.11release notes

New APIs and options 7

  • Queue users can count delayed jobs scheduled before a timestamp.

    6.7.0release notes

  • Deduplication supports a schedule option.

    6.6.0release notes

  • Adds support for reliable realtime messaging.

    6.4.0release notes

  • The :ssl option is forwarded to the Postgrex connection.

    6.3.0release notes

  • Job and Worker gain a generic ProgressType parameter, allowing progress types to be specified.

    6.2.0release notes

  • Provides access to the backend; use its RedisQueueBackend result to access the raw Redis client.

    6.0.0release notes

  • Introduces an abstraction for pluggable queue backends, alongside Redis and PostgreSQL backends.

    6.0.0release notes

Performance 1

  • Uses LPOS for the keepLastIfActive membership check, improving deduplication performance.

    6.3.19release notes

Behavior and default changes 3

  • Postgres schema migrations are now explicit.

    6.1.0release notes

  • ioredis is now optional, so developers no longer need it as a required dependency.

    6.0.10release notes

  • Telemetry now reports the number of cleaned jobs instead of recording the complete array of job IDs.

    6.0.0release notes

Fixes and other changes 31

  • A claimable job is no longer reported while the queue is maxed.

    6.7.8release notes

  • Removes the deduplication key associated with a parent job when that job is removed.

    6.7.6release notes

  • The processing span now records original job errors.

    6.7.5release notes

  • Waiting jobs are now counted while the queue is paused in PostgreSQL.

    6.7.4release notes

  • Worker threads now finish their current job when close(true) is called.

    6.6.1release notes

  • Calling connect() to reopen a node-redis client now clears its ended status.

    6.5.3release notes

  • Relay formats exclusive time bounds without precision loss.

    6.5.2release notes

  • Parent release is deferred until all children are added in the Python, Elixir, Rust, and .NET clients.

    6.5.1release notes

  • Preserves the last error when maxStartedAttempts is reached.

    6.3.18release notes

  • Resuming after pause(true) wakes the worker's main loop.

    6.3.17release notes

  • In Valkey Glide cluster mode, INFO is routed to a single node.

    6.3.16release notes

  • Retrying a finished job now respects its priority.

    6.3.15release notes

  • Children retried by retryJobs are moved back to their parent’s dependencies.

    6.3.13release notes

  • SQL is inlined at build time to restore support for single-file bundlers.

    6.3.12release notes

  • Stops infinite connection-error retries during shutdown.

    6.3.10release notes

  • Connection options are inferred for the selected backend instead of hiding mismatches with casts.

    6.3.9release notes

  • Retries the LISTEN connection after a failed connect.

    6.3.8release notes

  • Deduplication keys are removed when the corresponding job key no longer exists, fixing stale deduplication state in the listed language clients.

    6.3.7release notes

  • Nested duplicate() calls are now allowed on the lazy Bun adapter.

    6.3.6release notes

  • The worker keeps its blocking client alive while parked in reconnecting.

    6.3.3release notes

  • Under Bun, duplicate() now targets the correct server.

    6.3.3release notes

  • Under Bun, reconnect now targets the correct server.

    6.3.3release notes

  • The worker delegates maximumBlockTimeout to the backend.

    6.3.2release notes

  • Resolves the priv SQL directory at runtime for Mix releases.

    6.3.1release notes

  • Processing deferred failures no longer affects the rate limit.

    6.2.2release notes

  • Provides the right key values when moving stalled jobs to the wait queue.

    6.2.1release notes

  • Flow now allows parent options to come from the root parent.

    6.1.1release notes

  • The completed event’s returnvalue is typed as the deserialized value, so event consumers receive the corrected type.

    6.0.9release notes

  • Avoids a deep ioredis import so the postgres backend works without ioredis internals.

    6.0.8release notes

  • Workers recover blocking reads that never settle after a reconnect.

    6.0.7release notes

  • Adds missing SQL files to release packages for Elixir and Python users.

    6.0.1release notes

bullmq 586 changes

Breaking changes 7

  • A stalled job is moved to failed when fetched manually.

    5.80.7release notes

  • Enforces a maximum priority of 2^21-1 to preserve FIFO ordering at the boundary.

    5.80.1release notes

  • The JobJsonSandbox interface no longer includes returnvalue.

    5.74.1release notes

  • The debounce option was removed from the flow producer.

    5.66.4release notes

  • The deduplication option was removed from the flow producer.

    5.66.3release notes

  • A connection must be passed; the worker throws an error if it is missing.

    5.0.0release notes

  • Markers use a dedicated Redis key instead of a special Job ID.

    5.0.0release notes

New APIs and options 16

  • Adds the createScripts method to flow-producer for extensions.

    5.81.4release notes

  • Adds a client adapter for using Valkey Glide with BullMQ.

    5.81.0release notes

  • BullMQ has an initial implementation of Rust support.

    5.78.0release notes

  • Adds support for node-redis and Bun’s native Redis client, expanding the Redis clients developers can use with BullMQ.

    5.77.0release notes

  • Adds a getDependencies proxy for sandboxed processors.

    5.74.0release notes

  • Adds a getDependenciesCount proxy for jobs in the sandbox.

    5.73.0release notes

  • Adds an option for at-least-once-after-active deduplication semantics.

    5.72.0release notes

  • OpenTelemetry supports a gauge metric when counting jobs by state.

    5.71.0release notes

  • Sandboxed processors gain cancelation support.

    5.70.0release notes

  • Metrics are enabled for OpenTelemetry.

    5.69.0release notes

  • A datatype was added for version differentiation in the connection area.

    5.68.0release notes

  • Adds support for the removeDeduplicationKey method.

    5.65.0release notes

  • Adds job cancellation, allowing developers to cancel jobs.

    5.64.0release notes

  • Adds support for the getMeta method.

    5.63.0release notes

  • Adds the getGlobalRateLimit method to the queue API.

    5.62.0release notes

  • A skipAttempt option is available when manually moving a job.

    5.0.0release notes

Performance 6

  • flow-producer reuses the queue's shared Scripts instance in jobs, improving performance.

    5.80.9release notes

  • Removes per-command serialization to enable implicit pipelining.

    5.77.3release notes

  • Allows fetching the next job when moving a job to delayed, improving performance.

    5.73.3release notes

  • Applies a limit when removing jobs by max age.

    5.66.6release notes

  • Workers promote delayed jobs while the queue is rate limited.

    5.64.1release notes

  • The worker calls moveToActive after special errors, improving performance.

    5.62.1release notes

Behavior and default changes 2

  • Complete, retry, delay, and failed spans now include the job name and id as telemetry attributes.

    5.67.0release notes

  • Retrying a job can now reset its attemptsMade and attemptsStarted attributes.

    5.66.0release notes

Tooling 2

  • Methods in worker.py now have type hints, helping developers understand and check their types.

    5.76.0release notes

  • The Python Timer class now has type hints, improving type information for developers using it.

    5.75.0release notes

Fixes and other changes 53

  • Blocking client recovery is backported to v5.x, which may affect worker recovery behavior.

    5.81.3release notesrelease notes

  • Prevents an unhandled rejection when a connection's initialization fails before an error listener is attached.

    5.81.2release notes

  • Telemetry now emits job.state while preserving compatibility with job.status.

    5.81.2release notes

  • Jobs are retrieved in the same transaction under getJobs.

    5.81.1release notes

  • Suppresses ConnectionClosedError during teardown when using Bun.

    5.80.12release notes

  • Matches Bun RedisClient callback types, improving compatibility when using BullMQ with Bun.

    5.80.12release notes

  • Workers now emit the active event for all jobs moved to active.

    5.80.11release notes

  • When re-upserting under the same id, the scheduler now walks past stale slots.

    5.80.8release notes

  • Preserves child_process exports in sandbox mode when using null stdio.

    5.80.6release notes

  • Sandbox children that fail initialization are killed, and refusal errors are surfaced.

    5.80.5release notes

  • Fixes a potential integer-to-string conversion issue for job IDs.

    5.80.3release notes

  • upsertJobScheduler now respects the offset option when scheduling jobs.

    5.80.2release notes

  • The job-scheduler Lua helper now coerces string offsets.

    5.79.4release notes

  • Corrected the number type for the delay event.

    5.79.3release notes

  • Uses the correct data structure when retrying a failed child with ignoreDependencyOnFailure.

    5.79.2release notes

  • Accept a plain node-redis createClient result without requiring a cast.

    5.79.1release notes

  • Stalled jobs are failed if their scheduler no longer exists.

    5.78.1release notes

  • Changed NodeRedisRawClient to be node-redis compliant, improving compatibility for TypeScript integrations.

    5.77.6release notes

  • Handles cluster reconnection with timeouts.

    5.77.5release notes

  • Custom jobId is preserved when requeuing keepLastIfActive proto-jobs.

    5.77.4release notes

  • Typing on NodeRedisRawClient options is more permissive, allowing a wider range of option types.

    5.77.2release notes

  • BullMQ no longer mutates ioredis, avoiding unintended changes to the Redis client.

    5.77.1release notes

  • Workers stop fetching next jobs when closing during manual job movement.

    5.76.11release notes

  • Respects parent attribute deletion from a child when calling removeChildDependency.

    5.76.10release notes

  • The first 'every' job is now aligned to the next offset slot.

    5.76.8release notes

  • Reconnects blocking cluster clients that became wedged.

    5.76.6release notes

  • FlowProducer.add() now surfaces ParentJobNotExist errors.

    5.76.4release notes

  • Adds total counters to the Prometheus export for accurate counts when jobs are automatically removed.

    5.76.3release notes

  • The worker uses the scheduler registry to discriminate repeatable keys.

    5.76.1release notes

  • Handles the ioredis Cluster connect status in waitUntilReady, so readiness checks work with Cluster connections.

    5.75.2release notes

  • Uses slice reversal instead of reverse(), which returns None.

    5.75.1release notes

  • Corrects an unsafe type cast so getJob includes undefined in its return type.

    5.74.2release notes

  • Workers resume processing after a pause when using doNotWaitActive.

    5.73.5release notes

  • The worker emits the active event as soon as it gets the next job.

    5.73.4release notes

  • Correctly propagates the root jobId from pipeline results.

    5.73.2release notes

  • Added missing type declarations to the SandboxedJob interface.

    5.73.1release notes

  • Cancellation uses the native AbortController implementation when one is available.

    5.72.1release notes

  • Flow deduplication is now allowed from a root parent, including in Python and Elixir.

    5.70.4release notes

  • Process span attributes now use job timestamps.

    5.70.3release notes

  • Orphaned jobs are removed when auto-remove is enabled.

    5.70.2release notes

  • Non-BullMQ messages are now ignored in the sandbox.

    5.69.4release notes

  • Handles an empty scheduler hash fallback.

    5.69.3release notes

  • Errors from repeat or job-scheduler instances are now forwarded, making those errors observable to developers using BullMQ.

    5.69.2release notes

  • redisOptions are merged when duplicating a Redis cluster connection.

    5.67.3release notes

  • Telemetry now sends the most updated attemptsMade value when a job finishes.

    5.66.2release notes

  • Prevents lock errors when a job is no longer in the active state.

    5.65.1release notes

  • Connection error checking now considers the error code.

    5.63.2release notes

  • Changing every in an upsert no longer resets the iterations.

    5.63.1release notes

  • Calling updateJobProgress now emits a progress event.

    5.63.0release notes

  • Fixes changes not being applied to an existing scheduled job when using upsertJobScheduler.

    5.62.2release notes

  • Workers only emit an error when moveToActive fails, and emit it once when a failure happens in moveToFinished.

    5.61.2release notes

  • Calling the queue remove method now emits the removed event.

    5.61.2release notes

  • The Python Queue and Worker use unified Redis connection arguments.

    5.0.0release notes

bullmq 45 changes

Breaking changes 2

  • Priority is stored in its own sorted set, so duplication is no longer needed.

    4.0.0release notes

  • The job method update is renamed to updateData.

    4.0.0release notes

New APIs and options 2

  • Prioritized jobs are added as a new state as part of faster priority jobs.

    4.0.0release notes

  • A new queue method, removeDeprecatedPriorityKey, is available.

    4.0.0release notes

Fixes and other changes 1

  • The Python xtrim method now passes the right parameters.

    4.0.0release notes

bullmq 36 changes

Breaking changes 5

  • Backoff strategy object mapping is replaced by a single function.

    3.0.0release notes

  • The cron option is removed in favor of the pattern option.

    3.0.0release notes

  • The global rate limit implementation is improved.

    3.0.0release notes

  • Rate limiting by group keys is removed in favor of a simpler rate-limit implementation.

    3.0.0release notes

  • The pattern option replaces cron for repeat configuration.

    3.0.0release notes

New APIs and options 1