Guides / n8n Core / Self-hosted operations

n8n Queue Mode Execution Stuck at “Waiting”: Check Workers and Redis

Separate an intentional Wait node from a queue-mode backlog, then check n8n workers, Redis, database access, health endpoints, and safe recovery without deleting queued jobs.

FlowPatch queue-mode diagram showing an n8n main process placing an execution in Redis for a worker.
Production executions stay queued or appear as “Waiting” in a self-hosted n8n queue-mode deployment.
Short answer: In queue mode, the main process accepts production triggers and sends execution work through Redis to worker processes. A visible Waiting state can also be a workflow’s intentional Wait node, so first determine where the run paused. For queue backlog, inspect worker readiness, shared Redis and database configuration, process logs, and queue health before restarting services or touching Redis data.

First distinguish a Wait node from a queued execution

The word “waiting” is not a root cause. A workflow can intentionally pause at a Wait node, a human approval step, or a wait-for-webhook operation; that run is not necessarily waiting for a worker. Open one affected execution and inspect its last completed node, execution status, start time, and whether the workflow contains a pause or external response step. Compare it with a newly triggered production run rather than relying on a queue dashboard label alone.

A queue backlog has a different pattern: production runs are accepted, but workers do not begin or finish them at the expected rate. Note whether every run is delayed, only one workflow is affected, or executions started before a particular deploy. Also record whether new manual tests work; in queue mode, production executions use workers, while a manual execution may follow a different path. This split can narrow the problem without changing the workflow.

Trace the production path through main, Redis, worker, and database

Production triggers enter the main process, wait in Redis, and run on a worker.
Production triggers enter the main process, wait in Redis, and run on a worker.

In queue mode, the main n8n process handles timers and incoming webhook calls, then places execution work in Redis. Redis acts as the broker for pending jobs; a worker picks up the execution ID, reads workflow information from the shared database, runs the workflow, and reports completion back through Redis. A trigger can therefore reach the main instance successfully while no worker is available to take the job. A green editor page alone does not prove the worker path is healthy.

Write down the actual endpoints and service names used by main and workers. Verify that all relevant processes use `EXECUTIONS_MODE=queue`, point to the same Redis service and database, and connect to the same n8n database. n8n says distributed queue mode over SQLite is not supported. If the main process has a different Redis host, database number, or password from workers, it can enqueue a job in one place while workers watch another.

Check whether workers are alive and ready to accept work

Inspect the container platform or process manager for worker restarts, failed health checks, crash loops, deployment replicas, and resource pressure. Confirm at least one worker is actually running the n8n worker command, not just another main/editor process. Compare the worker image version, queue-mode setting, database, Redis configuration, and `N8N_ENCRYPTION_KEY` with the main process. Workers need the same key to decrypt credentials and access to the same database and Redis service.

If worker health checks are enabled, n8n documents `/healthz` for process reachability and `/healthz/readiness` for readiness of database and Redis connections. A process can answer a simple liveness check while still failing readiness. The worker health endpoint is disabled by default; configure `QUEUE_HEALTH_CHECK_ACTIVE=true` on the relevant workers before expecting it to respond. Do not treat a missing endpoint as proof that the worker is broken until you confirm the feature is enabled.

Verify Redis and database connectivity without flushing the queue

A worker needs to be alive, ready for Redis and the database, and configured for queue mode.
A worker needs to be alive, ready for Redis and the database, and configured for queue mode.

Read main and worker logs around the first stuck execution. Look for connection-refused, authentication, timeout, DNS, or database migration errors and tie each message to a process and timestamp. Verify that the Redis service name resolves from each container, the configured port and credentials are correct, and all processes use the same Redis database index. n8n documents `QUEUE_BULL_REDIS_HOST`, `QUEUE_BULL_REDIS_PORT`, username, password, database, and timeout settings; compare the effective runtime values rather than only the compose file.

Check database readiness and capacity as a separate dependency. A worker may connect to Redis but fail when loading the workflow or persisting the result. Confirm the database is reachable, migrations completed, connection limits are not exhausted, and disk space is available. If only larger runs stall, inspect worker memory and execution duration as well; do not increase concurrency before checking whether the worker can sustain it.

  • Redis endpoint: host, port, credentials, database index, and network path from every process.
  • Worker startup: queue mode enabled, worker command running, and same n8n version as the main process.
  • Database: same host/database/schema, healthy connections, completed migrations, and available storage.
  • Key and binary storage: shared encryption key and any storage path required by the workflow.

Use readiness and metrics to isolate the failing layer

Use health checks to separate “process is up” from “dependencies are ready.” n8n’s `/healthz` answers whether the instance is reachable; `/healthz/readiness` indicates the database is connected and migrated. Queue worker endpoints can report readiness to Redis and the database when enabled. Record the response code and process identity for main and each worker. If health checks are not enabled for workers, turn them on through the documented setting before adding them to an orchestrator’s readiness gate.

For self-hosted instances, n8n’s `/metrics` endpoint can provide more detailed status when `N8N_METRICS=true` is configured. Keep metrics and health endpoints within the monitoring network and follow your deployment’s access controls. Compare queue depth, worker availability, error counts, and latency before and after one controlled test. Do not expose internal metrics publicly as a shortcut, and do not conclude a Redis outage only because the UI status is delayed.

Recover gradually and protect jobs from duplicate side effects

Separate process reachability, readiness, Redis, database, and execution-state checks.
Separate process reachability, readiness, Redis, database, and execution-state checks.

Once logs point to a stopped or unhealthy worker, restore a worker using the same version, key, Redis connection, and database as the main instance. If a Redis or database endpoint changed, correct the configuration consistently and roll out the processes in a controlled order. Start with one healthy worker and one low-risk test execution; then watch whether the waiting backlog begins to drain. A restart may release capacity, but it does not repair a wrong endpoint or mismatched key.

Do not delete waiting jobs or replay business events blindly

Avoid flushing Redis, deleting queue keys, or manually changing execution rows to make the UI look clean. Those actions can erase work that has not run or hide the evidence needed to recover it. Before retrying the upstream webhook or resubmitting a scheduled event, check whether the existing execution might still run later. If a workflow writes to a CRM, sends a payment request, or creates a ticket, make the downstream operation idempotent or verify the target record before replaying.

After service is restored, track one affected execution through the full lifecycle: trigger accepted, job taken by a worker, execution status updated, result saved, and external side effect completed once. If the workflow instead pauses at a Wait node, inspect its resume condition and deadline. For a general execution stuck in a node rather than queue backlog, use the separate execution-timeout troubleshooting guide; do not increase timeout values to compensate for workers that never picked up a job.

Run a controlled queue-mode diagnostic

Choose a low-risk workflow with one simple node and a test-only destination. Record the trigger time and execution ID, verify the main process accepted it, then watch the worker logs, readiness endpoint, database, and Redis at that same time. Run one test only; repeated retries can add jobs faster than a recovering worker can process them. If one worker fails and another succeeds, compare their runtime configuration and deployment revision before editing the workflow.

When the backlog drains, check the oldest affected executions individually for completion and side effects. Keep a short incident note with n8n version, queue-mode topology, the first failing timestamp, health/readiness responses, Redis and database changes, and the exact recovery step. This helps distinguish a resolved worker outage from a workflow-specific Wait state and makes the next deployment safer.

  • Confirm the status and last node; identify deliberate Wait nodes separately from queued production work.
  • Verify main, workers, Redis, database, `EXECUTIONS_MODE`, and the shared encryption key.
  • Check worker liveness/readiness and logs before changing concurrency or restarting the full fleet.
  • Restore one worker, submit one low-risk test, and verify the external side effect happens once.

Documentation and source notes

The checklist follows n8n’s current queue-mode, worker health, monitoring, and execution-status documentation. Exact UI labels and configuration options can change between releases. Check the docs for the n8n version you run before changing queue settings, scaling workers, or moving production jobs.

Frequently asked questions

Does Waiting always mean my n8n worker is stuck?

No. A workflow can pause intentionally at a Wait node or a human-response step. Open the execution and identify its last completed node and status before diagnosing the queue. A queue backlog is more likely when production jobs are accepted but workers do not start them, especially across multiple workflows.

What must be shared by n8n queue workers?

Workers need access to the same Redis broker and n8n database as the main process, and they must use queue mode. They also need the same instance encryption key so credentials can be opened. Compare the effective runtime configuration and version for each worker rather than assuming a shared compose file guarantees the same values.

How can I check whether a worker is ready?

When queue health checks are enabled, n8n documents `/healthz` for worker reachability and `/healthz/readiness` for readiness of Redis and database connections. Worker health checks are not enabled by default. For self-hosted monitoring, `/metrics` can provide more detail when `N8N_METRICS=true` is configured.

Should I flush Redis to clear executions stuck in the queue?

No. Flushing Redis can delete pending work and remove evidence needed to recover it. First identify the failing dependency and restore a worker with the expected version, key, database, and Redis settings. Then track one low-risk execution through completion and confirm external actions are not duplicated before replaying upstream events.