Learn how to enable queue mode in n8n with clear steps to boost workflow performance, ensure scalable processing, and improve automation.

Book a call with an Expert
Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.
The short, direct answer:
To enable queue mode in n8n, you must run n8n in “queue” mode by setting the environment variable N8N_EXECUTIONS_MODE=queue and then run the separate queue worker process with N8N_EXECUTIONS_MODE=queue and N8N_OVERRIDE_EXECUTIONS_PROCESS=main. You also need a Redis instance because queue mode uses Redis as the job broker.
Queue mode is n8n’s way of splitting the workload into two roles:
This lets you run multiple workers, spread load across servers, and keep the main process responsive. It’s used in real production setups where workflows are heavy or need scaling.
Below is the real setup you use in production. No shortcuts.
// Main n8n server
export N8N_EXECUTIONS_MODE=queue
export QUEUE_BULL_REDIS_HOST=redis
export QUEUE_BULL_REDIS_PORT=6379
n8n
// Worker process
export N8N_EXECUTIONS_MODE=queue
export QUEUE_BULL_REDIS_HOST=redis
export QUEUE_BULL_REDIS_PORT=6379
n8n worker
// Webhook process (optional)
export N8N_EXECUTIONS_MODE=queue
export QUEUE_BULL_REDIS_HOST=redis
export QUEUE_BULL_REDIS_PORT=6379
n8n webhook
In real deployments, queue mode is used when workflows are long-running, heavy, or triggered frequently. The main server stays responsive, and you can scale by simply adding more workers.
This is the cleanest working example I use in production:
version: '3.8'
services:
redis:
image: redis:7
n8n-main:
image: n8nio/n8n
environment:
N8N_EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
ports:
- "5678:5678"
depends_on:
- redis
n8n-worker:
image: n8nio/n8n
command: n8n worker
environment:
N8N_EXECUTIONS_MODE: queue
QUEUE_BULL_REDIS_HOST: redis
depends_on:
- redis
The moment this deploys, queue mode is active.
When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.