# Code Node Task request timed out after 60 seconds

**URL:** <https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306>\
**Category:** Questions\
**Created:** [February 19, 2026, 3:07pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306 "2026-02-19T15:07:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nader95](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nader95/32/135001_2.png) [@nader95](https://community.n8n.io/u/nader95)\
**Post date:** [February 19, 2026, 3:07pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/1 "2026-02-19T15:07:41Z")

</div>

I am trying to run the code node with Python and JavaScript but every time I get  
`Task request timed out after 60 seconds `, I have noticed the new update in the runners from the documentation and from many questions here in the community but still can’t make it run properly.

I am hosting n8n on my VPS controlled by Coolify, so I install everything through Coolify  
this is my containers compose file

```yaml
services:
  n8n:
    image: n8nio/n8n
    environment:
      - SERVICE_URL_N8N_5678
      - 'N8N_EDITOR_BASE_URL=${SERVICE_URL_N8N}'
      - 'WEBHOOK_URL=${SERVICE_URL_N8N}'
      - 'N8N_HOST=${SERVICE_URL_N8N}'
      - 'N8N_PROTOCOL=${N8N_PROTOCOL:-https}'
      - 'GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-UTC}'
      - 'TZ=${TZ:-UTC}'
      - DB_TYPE=postgresdb
      - 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}'
      - DB_POSTGRESDB_HOST=postgresql
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_USER=$SERVICE_USER_POSTGRES
      - DB_POSTGRESDB_SCHEMA=public
      - DB_POSTGRESDB_PASSWORD=$SERVICE_PASSWORD_POSTGRES
      - EXECUTIONS_MODE=queue
      - QUEUE_BULL_REDIS_HOST=redis
      - QUEUE_HEALTH_CHECK_ACTIVE=true
      - 'N8N_ENCRYPTION_KEY=${SERVICE_PASSWORD_ENCRYPTION}'
      - 'N8N_RUNNERS_ENABLED=${N8N_RUNNERS_ENABLED:-true}'
      - 'N8N_RUNNERS_MODE=${N8N_RUNNERS_MODE:-external}'
      - 'N8N_RUNNERS_BROKER_LISTEN_ADDRESS=${N8N_RUNNERS_BROKER_LISTEN_ADDRESS:-0.0.0.0}'
      - 'N8N_RUNNERS_BROKER_PORT=${N8N_RUNNERS_BROKER_PORT:-5679}'
      - N8N_RUNNERS_AUTH_TOKEN=$SERVICE_PASSWORD_N8N
      - 'N8N_NATIVE_PYTHON_RUNNER=${N8N_NATIVE_PYTHON_RUNNER:-true}'
      - 'N8N_RUNNERS_MAX_CONCURRENCY=${N8N_RUNNERS_MAX_CONCURRENCY:-5}'
      - OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true
      - 'N8N_BLOCK_ENV_ACCESS_IN_NODE=${N8N_BLOCK_ENV_ACCESS_IN_NODE:-true}'
      - 'N8N_GIT_NODE_DISABLE_BARE_REPOS=${N8N_GIT_NODE_DISABLE_BARE_REPOS:-true}'
      - 'N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=${N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS:-true}'
      - 'N8N_PROXY_HOPS=${N8N_PROXY_HOPS:-1}'
      - 'N8N_SKIP_AUTH_ON_OAUTH_CALLBACK=${N8N_SKIP_AUTH_ON_OAUTH_CALLBACK:-false}'
    volumes:
      - 'n8n-data:/home/node/.n8n'
      - '/opt/n8n-data:/data'
    depends_on:
      postgresql:
        condition: service_healthy
      redis:
        condition: service_healthy
    healthcheck:
      test:
        - CMD-SHELL
        - 'wget -qO- http://127.0.0.1:5678/'
      interval: 5s
      timeout: 20s
      retries: 10
  n8n-worker:
    image: n8nio/n8n
    command: worker
    environment:
      - 'GENERIC_TIMEZONE=${GENERIC_TIMEZONE:-UTC}'
      - 'TZ=${TZ:-UTC}'
      - DB_TYPE=postgresdb
      - 'DB_POSTGRESDB_DATABASE=${POSTGRES_DB:-n8n}'
      - DB_POSTGRESDB_HOST=postgresql
      - DB_POSTGRESDB_PORT=5432
      - DB_POSTGRESDB_USER=$SERVICE_USER_POSTGRES
      - DB_POSTGRESDB_SCHEMA=public
      - DB_POSTGRESDB_PASSWORD=$SERVICE_PASSWORD_POSTGRES
      - EXECUTIONS_MODE=queue
      - QUEUE_BULL_REDIS_HOST=redis
      - QUEUE_HEALTH_CHECK_ACTIVE=true
      - 'N8N_ENCRYPTION_KEY=${SERVICE_PASSWORD_ENCRYPTION}'
      - 'N8N_RUNNERS_ENABLED=${N8N_RUNNERS_ENABLED:-true}'
      - 'N8N_RUNNERS_MODE=${N8N_RUNNERS_MODE:-external}'
      - 'N8N_RUNNERS_BROKER_LISTEN_ADDRESS=${N8N_RUNNERS_BROKER_LISTEN_ADDRESS:-0.0.0.0}'
      - 'N8N_RUNNERS_BROKER_PORT=${N8N_RUNNERS_BROKER_PORT:-5679}'
      - N8N_RUNNERS_AUTH_TOKEN=$SERVICE_PASSWORD_N8N
      - 'N8N_NATIVE_PYTHON_RUNNER=${N8N_NATIVE_PYTHON_RUNNER:-true}'
      - 'N8N_RUNNERS_MAX_CONCURRENCY=${N8N_RUNNERS_MAX_CONCURRENCY:-5}'
      - 'N8N_BLOCK_ENV_ACCESS_IN_NODE=${N8N_BLOCK_ENV_ACCESS_IN_NODE:-true}'
      - 'N8N_GIT_NODE_DISABLE_BARE_REPOS=${N8N_GIT_NODE_DISABLE_BARE_REPOS:-true}'
      - 'N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=${N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS:-true}'
      - 'N8N_PROXY_HOPS=${N8N_PROXY_HOPS:-1}'
      - 'N8N_SKIP_AUTH_ON_OAUTH_CALLBACK=${N8N_SKIP_AUTH_ON_OAUTH_CALLBACK:-false}'
    volumes:
      - 'n8n-data:/home/node/.n8n'
      - '/opt/n8n-data:/data'
    healthcheck:
      test:
        - CMD-SHELL
        - 'wget -qO- http://127.0.0.1:5678/healthz'
      interval: 5s
      timeout: 20s
      retries: 10
    depends_on:
      n8n:
        condition: service_healthy
      postgresql:
        condition: service_healthy
      redis:
        condition: service_healthy
  postgresql:
    image: 'postgres:16-alpine'
    volumes:
      - 'postgresql-data:/var/lib/postgresql/data'
    environment:
      - POSTGRES_USER=$SERVICE_USER_POSTGRES
      - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
      - 'POSTGRES_DB=${POSTGRES_DB:-n8n}'
    healthcheck:
      test:
        - CMD-SHELL
        - 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}'
      interval: 5s
      timeout: 20s
      retries: 10
  redis:
    image: 'redis:6-alpine'
    volumes:
      - 'redis-data:/data'
    healthcheck:
      test:
        - CMD
        - redis-cli
        - ping
      interval: 5s
      timeout: 5s
      retries: 10
  task-runners:
    image: n8nio/runners
    environment:
      - 'N8N_RUNNERS_TASK_BROKER_URI=${N8N_RUNNERS_TASK_BROKER_URI:-http://n8n:5679}'
      - 'N8N_RUNNERS_MODE=${N8N_RUNNERS_MODE:-external}'
      - 'N8N_RUNNERS_ENABLED_TASK_TYPES=javascript,python'
      - N8N_RUNNERS_AUTH_TOKEN=$SERVICE_PASSWORD_N8N
      - 'N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT=${N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT:-15}'
      - 'N8N_RUNNERS_MAX_CONCURRENCY=${N8N_RUNNERS_MAX_CONCURRENCY:-5}'
    volumes:
      - '/opt/n8n-data:/data'
      - '/var/run/docker.sock:/var/run/docker.sock'
    depends_on:
      - n8n
    healthcheck:
      test:
        - CMD-SHELL
        - 'wget -qO- http://127.0.0.1:5680/'
      interval: 5s
      timeout: 20s
      retries: 10

```

n8n version: 2.8.3  
Can anyone take a look and tell me please

---

<div class="post-metadata">

**Author:** ![nader95](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nader95/32/135001_2.png) [@nader95](https://community.n8n.io/u/nader95)\
**Post date:** [February 19, 2026, 3:10pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/2 "2026-02-19T15:10:51Z")

</div>

@Wouter_Nigrini @mohamed3nan if you can help please, I would be very grateful

---

<div class="post-metadata">

**Author:** ![barn4k](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/barn4k/32/8170_2.png) [@barn4k](https://community.n8n.io/u/barn4k)\
**Post date:** [February 19, 2026, 8:41pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/3 "2026-02-19T20:41:41Z")

</div>

hello @nader95

your n8n and n8n-worker instances have the same folder attached. That’s not good.

you don’t need to specify the `N8N_RUNNERS_MODE` for task runners. And you don’t need to specify any volumes for it.  
Better to increase the value of the `N8N_RUNNERS_AUTO_SHUTDOWN_TIMEOUT` to 60 or more seconds. 15 is too small

and it sems that you are using volumes, however I do not see a volume configuration block in the config.

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [February 19, 2026, 8:53pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/4 "2026-02-19T20:53:02Z")

</div>

Hi @nader95, welcome!

The following line is incorrect:

> [@nader95](#):
>
> ```auto
> environment:
> - 'N8N_RUNNERS_TASK_BROKER_URI=${N8N_RUNNERS_TASK_BROKER_URI:-http://n8n:5679}'
> 
> ```

It should be:

```auto
      - 'N8N_RUNNERS_TASK_BROKER_URI=http://n8n-worker:5679'

```

All other setup looks correct, give that a try and let me if you still get an error..

---

<div class="post-metadata">

**Author:** ![nader95](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nader95/32/135001_2.png) [@nader95](https://community.n8n.io/u/nader95)\
**Post date:** [February 19, 2026, 9:34pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/5 "2026-02-19T21:34:52Z")

</div>

OMG thanks my friend it worked for now, actually still don’t understand when to set it to`http://n8n:5679` and when to set it to `http://n8n-worker:5679`, cause I saw some cases here in the community that you and others recommend to set the runner to `http://n8n:5679`

---

<div class="post-metadata">

**Author:** ![mohamed3nan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mohamed3nan/32/188347_2.png) [@mohamed3nan](https://community.n8n.io/u/mohamed3nan)\
**Post date:** [February 19, 2026, 9:37pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/6 "2026-02-19T21:37:32Z")

</div>

That was a bug in the Coolify n8n template:

> [@Coolify - task runner not working](http://community.n8n.io/t/coolify-task-runner-not-working/262188/3):
>
> Hi @ElBaud, welcome! This appears to be a bug in the Coolify n8n template, The Task Runner is incorrectly trying to connect to the main instance instead of the worker: The Fix: You just need to update the N8N\_RUNNERS\_TASK\_BROKER\_URI environment variable in your compose file to point to the n8n-worker container: N8N\_RUNNERS\_TASK\_BROKER\_URI=${N8N\_RUNNERS\_TASK\_BROKER\_URI:-http://n8n-worker:5679} Also, make sure the value is correctly configured in Coolify environment varia…

It should be fixed in the new template in newer Coolify versions.

In general:  
For queue mode, use `http://n8n-worker:5679`  
For the regular setup with task runner, use `http://n8n:5679`

---

<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:** [February 26, 2026, 9:38pm UTC](https://community.n8n.io/t/code-node-task-request-timed-out-after-60-seconds/267306/7 "2026-02-26T21:38:24Z")

</div>

Closed on February 26, 2026, 9:38pm UTC

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