Upgrading n8n in queue mode with workers and task runners

A queue mode n8n upgrade moves main, webhook, worker and task runner processes together, so the plan has to cover versions, runners, migrations and draining before the first step runs. This page sets out the supported path, the checks at each step and what drives effort.

On this page

How to upgrade n8n in queue mode without splitting versions across processes

In a scaled n8n deployment, the main, webhook, worker and task runner processes must move as one set. Every process must run the same n8n version, and the n8nio/runners image must match the version of the n8nio/n8n image. n8n's queue mode docs require all main and worker processes to run the same version, and the external task runner rules tie each runner to its n8n release, so a partial upgrade is not a safe intermediate state. Plan the change as a single window with a defined order, not as a rolling update of individual containers.

The reason to upgrade is usually a fix, a security release or a feature that a workflow depends on, and the supported path depends on where you start. From n8n 2.0 onward, the main n8nio/n8n image no longer includes the task runner for external mode, so an upgrade that crosses that line also changes how runners are deployed. Each queue mode worker needs its own task runner sidecar. Before you choose a target, read the release notes for that exact version and confirm the required sequencing, any breaking changes and whether a database migration runs on first start. Do not assume that the steps used for a previous minor release still apply.

Give the upgrade a short checklist owned by one person. Confirm the target version and the matching runners image tag, confirm that the shared encryption key is identical on every main, worker and webhook process, and take a database backup before anything restarts. Database migrations only run forward, so the backup is your only way back. Then drain workers so that running executions finish before their containers are replaced, and check that the queue in Redis is empty or understood before you stop anything. Bring up the new versions, confirm that every process reports the same version, and run a test webhook and a scheduled workflow end to end before you release the change to users.

Ask your implementation partner or internal team to write down the sequence for your topology, including how many workers you run, whether you use a single main instance, and how long a drain is allowed to take. Multi-main high availability is limited to Enterprise self-hosted deployments, so most queue mode installations have one main process that must be stopped and restarted in the right order. Record the final order, the rollback point and the owner of each step before the first production change.

What changes in queue mode between n8n versions

This table compares the version rules that govern a scaled n8n deployment, from the main, worker and webhook processes to the task runner images and the encryption key they share. Read each row as a check to run before and during an upgrade, with the 2.x line as the current reference (2.43 was released on 6 October 2026).

RequirementImpact on the upgradeAction the team takes
Same n8n version for main and worker processesMain and worker processes must run one version, so a partial rollout leaves the queue in a mixed state.Move the main, all workers and all webhook processors to the target version in the same change window.
Matching n8nio/runners image versionIn external mode the runners image version must equal the n8nio/n8n image version, so tag drift breaks task execution.Pin the n8nio/runners tag to the same version as n8nio/n8n in every deployment manifest and check both before rollout.
Separate runner image from n8n 2.0 onwardFrom n8n 2.0 the main n8nio/n8n image no longer includes the task runner for external mode, so an upgrade that keeps the old image layout will not run it.Add the n8nio/runners image to the deployment for each 2.x target and review the v2.0 breaking changes before cutover.
One task runner sidecar per workerEach queue mode worker needs its own runner sidecar, so scaling workers during an upgrade also changes the number of sidecars that must match.Count workers and sidecars before and after the change and confirm every worker pairs with a runner on the same version.
Shared encryption key for workers and webhook processorsWorkers and webhook processors read credentials from the database using the main instance's key, so a missing or different key stops credential-based runs.Confirm the same encryption key is set on main, workers and webhook processors before starting any upgrade step.
Database migrations on the main instanceSchema changes run as part of the version change, so the team must plan for a single migration path and treat rollback as a restore task.Take a database backup, run the upgrade on the main instance first and confirm the migration completes before starting workers.
Draining workers before replacementStopping a worker while it holds executions can leave runs incomplete, so drain time depends on workload and execution length.Stop new job intake, wait for running executions to finish, then replace each worker and confirm it reconnects to Redis.
Redis as the queue brokerThe queue depends on Redis, so a Redis version change is a separate decision from the n8n upgrade and has its own license terms.Record the Redis version and license line, confirm it stays stable through the n8n change, and test failover if Sentinel is used.

Main, webhook, worker and runner processes must move together

The diagram starts at triggers and webhooks, which reach the main instance and the webhook processor. Both hand executions to Redis, which dispatches them to workers. Main and workers read and write workflow data in PostgreSQL, and each worker calls its task runner sidecar, which comes from the n8nio/runners image. The shaded group marks the version-lock boundary: main, webhook processors, workers and runner sidecars must run the same n8n version, and the runners image must match it. The shared encryption key reaches every process that reads credentials. Check each component's version and key before draining workers.

Components that must move together during a queue mode upgrade.

Which upgrade path fits your queue mode topology

This is the most common queue mode layout. One main instance handles the editor, triggers and webhooks, and places executions into Redis for a pool of workers that read and write workflow data in PostgreSQL. Because queue mode requires all main and worker processes to run the same version of n8n, the whole set moves together rather than one process at a time.

  • Stop the workers first: Drain them so no execution is mid-run when the image changes. Confirm how long your longest workflows take before choosing the drain window.
  • Upgrade the main instance: Run the new n8nio/n8n image on main so database migrations execute once, and confirm the migration output before continuing.
  • Match the runners image: In external mode, pair each worker with a task runner sidecar from the n8nio/runners image whose version matches n8n exactly.
  • Bring workers back on the same version: Start every worker only after main is healthy, then confirm each worker registers with the queue.
  • Confirm with n8n: Check the upgrade notes for your target version and whether a breaking change affects task runners or the encryption key before you start.

Before starting, confirm the exact target version, the matching runners tag and a tested rollback path for the database.

Backups, inventory and a staging queue before cutover

Six preparation steps come before any process is touched in a scaled n8n deployment. Each one produces a artifact the team can roll back to, check against, or rehearse with, so cutover starts from known versions, a known key and a known drain procedure.

Back up database and data folder

Take a backup of the PostgreSQL database and the n8n data folder before the first change, and confirm the backup restores on a separate host. Database migrations only run forward, so this backup is the only way back if the upgrade fails. Record the backup time, size and checksum in the change ticket.

Inventory image tags and encryption key

List the image tag of every main, worker, webhook and task runner container, and confirm the encryption key value is identical in every process that reads credentials. Mismatched tags or keys are the most common cause of failed workers after an upgrade. Store the inventory with the change ticket so the team can compare it after each step.

Build a staging queue environment

Stand up a staging copy with the same Redis, PostgreSQL and worker count as production, restored from a recent production backup. Run the upgrade there first and watch whether queued executions drain and resume. A staging queue with fewer workers will not show the timing problems that appear in production.

Review custom nodes and Code node dependencies

Review every custom node package, community node and Code node module that workers load, and check each against the target n8n version. Packages that depend on removed or changed internals fail only on workers, so a main-only smoke test can miss them. Ask each package owner for a tested version or document the gap.

Confirm Redis version and license

Record the Redis version and its license, because the license depends on the release line. Redis 8.0 and later can be used under RSALv2, SSPLv1 or AGPLv3, while 7.4.x to 7.8.x use the dual RSALv2 or SSPLv1 license. Confirm the license choice with your legal team before any Redis upgrade is scheduled alongside n8n.

Redis licenses

Rehearse drain and restart steps

Practice the sequence of stopping new executions, waiting for workers to finish active jobs, replacing images and restarting in the agreed order on staging. Time each step and write down which process must start first. The written runbook produced by the rehearsal becomes the checklist used on the production change window.

How to upgrade n8n queue mode workers in sequence

This sequence moves a scaled n8n deployment to a new version with the main, webhook and worker processes and their task runner sidecars aligned, and with a clear rollback point before any database change.

  1. Drain workers and pause new work

    Stop accepting new triggers where your setup allows it, then let workers finish the executions already in progress before you change any image. Confirm in your queue monitoring that no jobs are still active or waiting for workers you plan to replace. Record the current n8n and n8nio/runners tags for every process so you know exactly what you are rolling back to. The check is an empty queue and a written inventory of the running versions on the main, webhook and worker hosts.

  2. Back up the database and encryption key

    Take a full backup of the PostgreSQL database and copy the encryption key that the main instance uses, stored outside the containers. Because n8n queue mode requires the same key on every worker and webhook processor, confirm the copy matches what each process currently reads. Store the backup where the upgrade hosts cannot overwrite it. This backup is the decisive rollback point, because database migrations only run forward and restoring an older version later depends on it.

  3. Pin the target n8n and runners tags

    Edit the image references on every process so the target n8n version and the n8nio/runners version are set to the same release, using explicit tags rather than floating ones such as latest. n8n queue mode requires all main and worker processes to run the same n8n version, and external task runners must match the n8nio/n8n image version. Confirm the tags in your deployment manifests and compose files before any container restarts. The check is a diff that shows one target version across every process definition.

  4. Upgrade the main instance and run migrations

    Restart the main instance on the target version first, since it is the process that runs database migrations on startup. Watch the startup logs until migrations finish and the editor and API respond, and confirm the migration completed without errors in the database. Do not start workers or webhook processors on the old version against the migrated schema. Once the main instance is healthy, the rollback point from the backup step is no longer usable for a simple image swap, so treat any failure here as a restore-from-backup decision.

  5. Upgrade webhook processors

    Move the webhook processors to the pinned target version and their matching runners image, then restart them one group at a time. Webhook processors need the same encryption key and must reach Redis and PostgreSQL. Send a test webhook to confirm it is accepted and queued rather than returning an error. The check is a successful test request through each webhook endpoint and no version mismatch reported in logs.

  6. Upgrade workers with their runner sidecars

    Upgrade each worker together with its own task runner sidecar, since every queue mode worker needs a runner sidecar in external mode. Bring workers up in small groups so the pool keeps processing jobs while others restart. Confirm each worker logs its version, connects to Redis and reports its runner as ready before moving on. The closing check is every worker and runner pair showing the target version and processing a test execution.

  7. Verify the upgraded deployment

    Run a set of representative workflows that cover triggers, sub-workflows, credentials and webhook responses, and compare the results with the expected output. Check that the queue drains, that executions complete on workers rather than failing, and that no process still reports an older version. Review logs for credential decryption errors, which usually point to a key that differs between processes. The sequence is complete when the test set passes and the version inventory matches the target across main, webhook and worker processes.

Draining workers safely before the main process changes

Drain workers before you touch the main instance or the database, because a worker that is still running an old n8n release can pick up a job and fail it halfway through. Queue mode requires all main and worker processes to run the same n8n version, so a worker left on the old image while main moves to the new one is a mismatch you create on purpose during the cutover. The failure is usually not a clean error at the start of a run. A job can start on the old worker, read workflow data or credentials in a shape the new schema has changed, and stop partway with an execution that is hard to reason about. Each worker also has its own task runner sidecar, which must match the n8nio/runners image version, so drain the pair together.

The drain itself is a stop-intake-then-wait sequence. Stop each worker from accepting new jobs, let jobs already in flight finish, and only then stop the container. Do not assume the exact signal, timeout or in-flight behavior. Confirm the stop signal, the grace period before forced termination, and what happens to executions that are still running when a worker stops in the queue mode documentation for the exact n8n version you are moving to, and test that behavior in staging first. Your upgrade runbook should record those values so the operator on call is not reading them for the first time during the window.

While the drain runs, watch the queue rather than the process list. Check how many jobs are waiting in Redis and whether the count falls as workers finish, whether any execution sits in a running state with no active worker, and whether the webhook processors are still accepting requests that the queue cannot yet serve. Keep the main instance on the old version until the queue is empty or you have a documented decision on any jobs that will be retried or lost. Redis itself is a separate component with its own version and license line, so confirm its version does not change during the same window.

What makes an n8n queue mode upgrade take longer

This table lists the factors that expand or shrink an n8n queue mode upgrade, the effect each has on effort, and what to inventory first to size the work. Read it before requesting a scope, because the same version jump can take very different amounts of effort depending on these counts. The main takeaway is that worker count, runner sidecars and Code node or custom module use usually determine the test surface more than the upgrade steps themselves.

DriverEffect on effortInventory first
Workers and webhook processorsEach process must be moved to the same version, and each needs its own drain and restart step in the right order.List every worker and webhook processor, its image tag and its deployment method.
Runner sidecarsIn external mode each worker needs its own task runner sidecar, so every runner must match the n8n version.Count runner containers per worker and confirm each uses the n8nio/runners tag that matches n8n.
Custom nodes and external modulesCommunity or private nodes may not be compatible with the target version and must be retested or rebuilt.Export the installed node packages and any external module list from each environment.
Code node usageWorkflows that rely on JavaScript or Python in Code nodes need review against the runner and security defaults in the target version.Search all workflows for Code nodes and record which use external modules.
Database size and migration timeSchema migrations run forward only, and larger execution history or workflow data lengthens the window in which workers must stay stopped.Measure database size, execution data retention settings and the time a test migration takes on a copy.
Redis topologyA single Redis instance is simpler to drain and restart than a Sentinel setup, and each Redis change adds a verification step.Document whether Redis is single node or Sentinel managed, its version and who operates it.
Environments to testEach environment (development, staging, production) needs its own upgrade rehearsal and sign-off, so effort grows with environment count.List all instances, their versions and whether they share a database or encryption key.
Editions and plans in useFeatures tied to a paid plan, such as SSO or environments, need separate checks, and some features may be unavailable or changed after the upgrade.Confirm the edition and license in use and which paid features are enabled.

How much does an n8n queue mode upgrade cost and what does it need from us

What are the cost components of an n8n queue mode upgrade?

The main cost is the engineering time to plan, rehearse and cut over the upgrade across every process type. Work usually splits into four parts: inventory of the current topology (main, worker, webhook and task runner containers, plus Redis and PostgreSQL), a staging rehearsal on a copy of production data, the production cutover with drain and rollback steps, and documentation of the result. Your organization pays for its own staff time, any cloud or compute capacity used for staging, and any outside help. If you hire a partner, the fee is set by the written scope, not by a rate card DeployOpen publishes. Ask the quote to show each part separately so you can see which parts your team already covers.

Is an n8n queue mode upgrade a one-time job or recurring work?

The cutover itself is one-time, but the discipline around it recurs. Each n8n release that changes the database schema, the encryption behavior or the task runner image needs the same checks: matching versions on main, workers and webhook processors, a matching n8nio/runners image, and a tested drain sequence. n8n ships minor releases roughly weekly, so a team that never plans a cadence will face the same work repeatedly under pressure. Recurring costs therefore sit in staff time for reading release notes, maintaining a staging environment and pinning image tags. Ask any partner whether a retainer for future upgrades is part of the quote or a separate agreement.

What drives the cost of an n8n queue mode upgrade up or down?

Cost rises with the number of moving parts and the risk of each one. The main drivers are:

  • Number of worker and webhook processor nodes, each with its own task runner sidecar in external mode
  • How many versions you jump, and whether the path crosses a major release with breaking changes
  • Whether you run a single main instance or a multi-main setup, which is restricted to Enterprise self-hosted deployments
  • Size and age of the PostgreSQL database, since migrations run forward only
  • Number of credentials, custom nodes and workflows that must be re-tested after the upgrade
  • Whether staging mirrors production closely enough to rehearse the cutover

More workers and more custom code increase testing time. A clean, documented topology with a staging copy reduces it.

What should a fixed-scope quote for an n8n upgrade include?

A fixed-scope quote should name the exact n8n versions in and out, the process inventory it covers, and the environments it touches. Ask it to state:

  • The target n8n version and the matching n8nio/runners image tag
  • Which main, worker, webhook and task runner processes are in scope, and how many of each
  • Whether the work includes a staging rehearsal and a documented drain procedure for workers
  • How encryption keys are handled and confirmed across all processes
  • Backup and restore steps for the database and the .n8n folder, and who runs them
  • Acceptance checks, such as workflow test runs and execution monitoring after cutover
  • What is excluded, such as workflow rebuilds or new integrations, and the change process for scope additions

We scope every engagement in writing before work starts, so these points belong in the agreed document.

How long does an n8n queue mode upgrade take and what sets the duration?

Duration depends on scope, not on a fixed template, so no timeline is given here. The main factors are the number of processes to coordinate, the number of version steps between your current release and the target, whether breaking changes affect your workflows, and how many workflows need manual testing. Staging availability and change windows also matter, because a drain and cutover usually has to happen in a planned maintenance period. Ask any provider for a timeline that is broken into inventory, rehearsal, cutover and verification, and ask which of those steps depend on your team's availability.

What does our team need to provide for an n8n queue mode upgrade?

Your team needs to provide access and decisions that only your organization can give. This typically includes:

  • Read access to the Docker, Kubernetes or host configuration for every main, worker and webhook processor
  • The current n8n encryption key, stored securely, and confirmation that it matches across processes
  • A PostgreSQL backup, plus a staging environment that can hold a copy of the data
  • A list of critical workflows and business owners who can confirm test results
  • Change windows, approval paths and a named contact for go or no-go decisions

If the Redis instance is managed by another team, that team's involvement should be planned as well.

Can our internal team upgrade n8n in queue mode without outside help?

Yes, an experienced platform team can upgrade n8n in queue mode without a partner, provided it has the skills and time to do the work carefully. The team needs working knowledge of container images, PostgreSQL migrations, Redis, and n8n's queue mode settings, including the shared encryption key. The deciding questions are whether you have a staging copy, whether someone owns the release cadence, and whether the team can test workflows during a cutover window. If any of those are missing, outside help is usually cheaper than a failed cutover and a rollback. Confirm your own capacity against the upgrade steps before deciding.

Which settings must match before cutting over a queue mode n8n upgrade?

Engineers should check that every main, worker and webhook processor runs the same n8n version, because queue mode requires it. In external task runner mode, the n8nio/runners image version must match the n8nio/n8n image version, and each worker needs its own task runner sidecar. From n8n 2.0, the main n8nio/n8n image no longer includes the task runner for external mode, so the separate n8nio/runners image must be deployed. Also confirm that the same encryption key is set on all processes so credentials remain readable after the upgrade.

How DeployOpen scopes and delivers a queue mode n8n upgrade

DeployOpen approaches an upgrade of a queue mode n8n deployment as one coordinated change across the main, worker, webhook and task runner processes, not as a single image swap. The work is planned in writing, built and tested in a non-production copy of your environment, and handed over with runbooks your team can repeat. Each step is agreed before it starts, so your team knows what changes and when.

How we scope

  • Inventory every main, worker and webhook process, their current n8n image tags and the n8nio/runners sidecars attached to each worker
  • Confirm the target n8n version and the matching n8nio/runners tag, since both must run the same version as n8n
  • Record the database engine, Redis setup, and where the encryption key is stored for every process that reads credentials
  • Agree in writing the drain window, rollback point, test workflows and the sign-off owner before work begins

How we build

  • Rehearse the upgrade on a copy of the production database and queue setup, including the forward-only database migration
  • Pin the main, worker, webhook and runners image tags so no process starts on a different version during the cutover
  • Drain workers so running executions finish before each worker is stopped, upgraded and returned to the pool
  • Run representative workflows, webhook calls and scheduled triggers after each stage and record the results

How we hand over

  • Deliver a runbook with the exact upgrade order, image tags, drain commands and checks for each process role
  • Document the pre-upgrade backup and restore steps, including the database and the .n8n data folder
  • Provide a version matrix showing the n8n, runners and Redis versions in each environment after the change
  • Walk your platform and automation owners through the runbook and leave a written list of open items

How we support

  • Support for future minor releases and major upgrades is available as a retainer, scoped in writing
  • Retesting after each planned upgrade confirms that queue mode, credentials and webhooks still behave as before
  • Confirm with your team which n8n plan includes the features in use, since multi-main setup is limited to Enterprise self-hosted deployments
  • Ask for a quote that separates one-time upgrade work from recurring support, so budget owners can compare options

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.