# Remove task runner from n8nio/n8n docker image

**URL:** <https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180>\
**Category:** Questions\
**Tags:** deployment\
**Created:** [December 17, 2025, 8:21am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180 "2025-12-17T08:21:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![alhassan23](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@alhassan23](https://community.n8n.io/u/alhassan23)\
**Post date:** [December 17, 2025, 8:21am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/1 "2025-12-17T08:21:44Z")

</div>

### **Describe the problem/error/question**

I am trying to migrate my **n8n Queue Mode** setup on **Railway** from v1.x to **v2.0.0**. Since v2.0 removes the internal task runner, I set up **External Task Runners** using the n8nio/runners:2.0.0 image as sidecars.

My setup consists of 6 main services in Railway:

1. **Primary** (n8nio/n8n:2.0.0)

2. **Worker** (n8nio/n8n:2.0.0 running n8n worker)

3. **Task Runner for Primary** (n8nio/runners:2.0.0)

4. **Task Runner for Worker** (n8nio/runners:2.0.0)

5. **Postgres** (db)

6. **Redis**

**Architecture & Config:**

- **Primary** has:

- **Task Runner (Primary)** connects to:

- **Worker** has similar config to Primary.

- **Task Runner (Worker)** connects to:

**The Issue:** Despite the logs on the Primary instance showing that runners are registering (

```auto
Registered runner "launcher-javascript" ...

```

), my workflows containing Code Nodes **do not execute**. They get stuck or queued indefinitely.

Specifically, on the Worker side, the Task Runner logs often show:

```auto
[launcher:js] Waiting for launcher's task offer to be accepted...
[launcher:js] Waiting for task broker to be ready...

```

It seems like the handshake happens, but the actual task execution fails to route correctly in the Railway private network environment.

### **What is the error message (if any)?**

```auto
In the Worker's Task Runner logs:

INFO [launcher:js] Starting launcher goroutine...

INFO [launcher:js] Waiting for task broker to be ready...

INFO [launcher:js] Waiting for launcher's task offer to be accepted...

In the Primary logs (showing successful registration but no execution):

Registered runner "launcher-javascript" (954eda98a81d248f) 

Registered runner "launcher-python" (be643b2515650863) 

Enqueued execution 1 (job 1)

... (Execution hangs here)

```

### **Information on your n8n setup**

- **n8n version:** 2.0.0

- **Database (default: SQLite):** Postgres

- **n8n EXECUTIONS\_PROCESS setting (default: own, main):** queue

- **Running n8n via (Docker, npm, n8n cloud, desktop app):** Railway (Docker)

- **Operating system:** Linux

---

<div class="post-metadata">

**Author:** ![alhassan23](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@alhassan23](https://community.n8n.io/u/alhassan23)\
**Post date:** [December 21, 2025, 6:10pm UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/2 "2025-12-21T18:10:11Z")

</div>

can anyone help here?

---

<div class="post-metadata">

**Author:** ![all-you-can-pete](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/all-you-can-pete/32/153500_2.png) [@all-you-can-pete](https://community.n8n.io/u/all-you-can-pete)\
**Post date:** [January 28, 2026, 2:06pm UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/3 "2026-01-28T14:06:10Z")

</div>

Hey @alhassan23, it’s a long shot as I imagine you just left it our for brevity, but have you got N8N\_RUNNERS\_AUTH\_TOKEN configured on all services?

---

<div class="post-metadata">

**Author:** ![tamy.santos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/tamy.santos/32/153776_2.png) [@tamy.santos](https://community.n8n.io/u/tamy.santos)\
**Post date:** [January 28, 2026, 2:28pm UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/4 "2026-01-28T14:28:56Z")

</div>

hi @alhassan23 !

One additional thing to check beyond authentication is the runner topology in queue mode.  
In n8n 2.0, external task runners should connect only to the Primary instance (the task broker), not to individual Workers.

Workers are only responsible for pulling jobs from Redis, while the Primary coordinates runner task offers.  
Pointing runners directly at Workers can result in runners registering but tasks never being accepted, which matches the behavior you’re seeing.

---

<div class="post-metadata">

**Author:** ![JohnDoe](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@JohnDoe](https://community.n8n.io/u/JohnDoe)\
**Post date:** [February 9, 2026, 2:24pm UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/5 "2026-02-09T14:24:46Z")

</div>

> external task runners should connect only to the Primary instance (the task broker), not to individual Workers.

Is it only related to 2.x? What is your source @tamy.santos ?

I have the similar problem and I found in docs this:

> When using [Queue mode](https://docs.n8n.io/hosting/scaling/queue-mode/), each worker needs to have its own sidecar container for task runners.
> 
> In addition, if [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=false`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables), then your main instance will run manual executions and needs its own sidecar container for task runners as well.

Source:

> **[External mode - Task runners | n8n Docs](https://docs.n8n.io/hosting/configuration/task-runners/#external-mode)**
>
> Task runners are a generic mechanism to execute tasks in a secure and performant way. They're used to execute user-provided JavaScript and Python code in the Code node. | How to configure task runners to execute tasks using internal or external...

I see one difference in my case launcher is registered and right after that (less than 0.5s) is deregistered…

![image](https://europe1.discourse-cdn.com/n8n/optimized/3X/1/f/1f600a75ebe945b769f96ddfc1cfd680426e2596_2_689x53.png)

---

<div class="post-metadata">

**Author:** ![all-you-can-pete](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/all-you-can-pete/32/153500_2.png) [@all-you-can-pete](https://community.n8n.io/u/all-you-can-pete)\
**Post date:** [February 9, 2026, 4:16pm UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/6 "2026-02-09T16:16:46Z")

</div>

> [@JohnDoe](#):
>
> Is it only related to 2.x? What is your source @tamy.santos ?

I messaged Tamy about that when originally posted as I was having problems with my runners and thought it was down to running brokers on my workers. However I since found the problem was to do with my k8s hosting network connectivity and I have been running brokers on my workers with no problem since. There’s also the below (my emphasis) in [this documentation](https://docs.n8n.io/hosting/configuration/task-runners/#how-it-works):

> The n8n instance (main **and worker** ) acts as the broker. The Code node in this case is the task requester.

Regarding the deregistration - I think that’s a normal part of the launcher/broker/runner lifecycle:

> Once the launcher is started, it connects to the n8n instance via HTTP and then via websocket, registers itself as a runner with the task broker, and sends the task broker a non-expiring offer to run a task.
> 
> This flow is called the **handshake**. The handshake will complete only when a task needs to be run, i.e. only once the task broker sends the launcher (registered as a runner) the broker’s acceptance of the launcher’s offer to run a task.
> 
> The launcher itself cannot run a task, so once the launcher receives an acceptance from the broker, the launcher requests the broker to defer the task, disconnects from the task broker, and launches a task runner as a separate process.

from [here](https://github.com/skyiron/n8n-task-runner-launcher/blob/main/docs/lifecycle.md).

---

<div class="post-metadata">

**Author:** ![JohnDoe](https://avatars.discourse-cdn.com/v4/letter/j/65b543/32.png) [@JohnDoe](https://community.n8n.io/u/JohnDoe)\
**Post date:** [February 10, 2026, 8:03am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/7 "2026-02-10T08:03:05Z")

</div>

Thanks for the answer.

Your quote:

> The n8n instance (main **and worker** ) acts as the broker. The Code node in this case is the task requester.

Is before the one I pasted:

> When using [Queue mode](https://docs.n8n.io/hosting/scaling/queue-mode/), each worker needs to have its own sidecar container for task runners.
> 
> In addition, if [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=false`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables), then your main instance will run manual executions and needs its own sidecar container for task runners as well.

I believe that means:

IF [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=false`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables)`THEN broker -> main + worker`  
IF ELSE [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables)`THEN broker -> (ONLY)worker`

Which means that in case where “[`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables)`" we need a sidecar container with task runner only for worker.`

Tell me if I am wrong, please?

---

<div class="post-metadata">

**Author:** ![all-you-can-pete](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/all-you-can-pete/32/153500_2.png) [@all-you-can-pete](https://community.n8n.io/u/all-you-can-pete)\
**Post date:** [February 10, 2026, 8:49am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/8 "2026-02-10T08:49:06Z")

</div>

That’s what I understand it to mean, yes. I have [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables)set to true and have no sidecar container with my main instance and haven’t witnessed any problems.

I have also raised a feature request to be able to disable the broker as I don’t think it’s required to be running on main in this configuration.

---

<div class="post-metadata">

**Author:** ![all-you-can-pete](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/all-you-can-pete/32/153500_2.png) [@all-you-can-pete](https://community.n8n.io/u/all-you-can-pete)\
**Post date:** [February 10, 2026, 9:30am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/9 "2026-02-10T09:30:33Z")

</div>

That’s what I understand it to mean, yes. I have [`OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS`](https://docs.n8n.io/hosting/configuration/environment-variables/queue-mode/#queue-mode-environment-variables)set to true and have no sidecar container with my main instance and haven’t witnessed any problems.

I have also raised a feature request to be able to disable the broker as I don’t think it’s required to be running on main in this configuration.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 11, 2026, 9:31am UTC](https://community.n8n.io/t/remove-task-runner-from-n8nio-n8n-docker-image/237180/10 "2026-05-11T09:31:08Z")

</div>

Closed on May 11, 2026, 9:31am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
