Shipping an AI app or agent? Security review in 1 working day: $149 / ₹13,900. Request a review →
AI Review Ready
Home / Error fixes / Task request timed out (Code node)
Fix · n8n Code node · task runners

n8n: Task request timed out, Code node not matched to a runner

What it means: your Code node waited for a task runner (the process that runs Code node JavaScript or Python) and none took the task within 60 seconds. If even a one-line Code node fails, the runner itself is down, not your code. n8n Cloud: you can't restart the runner yourself; contact n8n support. Self-hosted: check that the runner is running and its logs, then raise N8N_RUNNERS_MAX_CONCURRENCY or N8N_RUNNERS_TASK_REQUEST_TIMEOUT only if it's simply busy.

At a glance
ErrorTask request timed out Your Code node task was not matched to a runner within the timeout period (waited 60 seconds). This indicates that the task runner is currently down, or not ready, or at capacity, so it cannot service your task.
Wait timeN8N_RUNNERS_TASK_REQUEST_TIMEOUT, default 60 seconds
Runner capacityN8N_RUNNERS_MAX_CONCURRENCY, default 10 tasks at a time (JavaScript); 5 for Python
Known bug25-27 Aug 2026: on 2.37.x the JS runner couldn't start (missing libatomic.so.1 after the Node 26 update). Fixed in n8n 2.38.1 (#37106)
Reports31 people opened GitHub issues quoting it, Aug to Dec 2026, with a burst on 25-27 Aug (#37064, #37157); later #38308, #38562, #39412, #39671
Checked5 Dec 2026, against the sources listed below

First: is it your code or the runner?

Make a new workflow with a manual trigger and one Code node that only returns [{json: {ok: 1}}]. Reporters used exactly this test (#37157, #38308). If it also times out, the runner isn't taking any task: no change to your workflow will help. If it works, your other Code nodes are waiting behind long tasks: see "Busy runner" below.

n8n Cloud

  • There are no runner settings to change. One reporter: "Since I'm on n8n Cloud, I don't have access to N8N_RUNNERS_TASK_REQUEST_TIMEOUT" (#38308). n8n closes Cloud reports on GitHub as support issues; email support with your instance name and a failed execution ID.
  • Restarting the instance or upgrading the plan didn't help reporters during the August bug (#37157).
  • Retry On Fail doesn't help when the runner is down: 5 retries all failed in #38308.

Self-hosted: check the runner

  1. Read the runner or launcher logs. In the August bug they showed error while loading shared libraries: libatomic.so.1: cannot open shared object file and Runner process exited with error: exit status 127: the JS runner crashed on every start and no task was ever matched (#37106). Python runners were unaffected. If you run the runners image from 2.37.x, update to 2.38.1 or later.
  2. Check the mode. N8N_RUNNERS_MODE is internal (n8n starts the runner as a child process, now deprecated) or external (you run the runner separately). In external mode the runner must be running and connected: n8n's own test for this error (PR #40136) starts n8n in external mode with no runner.
  3. Busy runner: the error text itself suggests spacing out long-running Code node tasks. Capacity is N8N_RUNNERS_MAX_CONCURRENCY (default 10), and each task may run for N8N_RUNNERS_TASK_TIMEOUT (default 60 s) before it's stopped.
  4. Raise the wait only after that: N8N_RUNNERS_TASK_REQUEST_TIMEOUT (seconds, default 60, must be greater than 0). A longer wait doesn't help if no runner is alive.
# example values, self-hosted only
N8N_RUNNERS_MAX_CONCURRENCY=20
N8N_RUNNERS_TASK_REQUEST_TIMEOUT=120

During a restart or deploy

Code nodes waiting for a runner when a worker shuts down can fail with the same message even though nothing timed out: n8n caps waiting task requests to the shutdown deadline (#40136, 2.43.0), and an open PR (#44158) would report these as "Task aborted because the n8n instance was shutting down" instead. A fix released in 2.39.0 (#37737) stopped workers shutting their runner down while a detached sub-workflow was still running.

In n8n's source

The message comes from TaskRequestTimeoutError (packages/cli/src/task-runners/errors/task-request-timeout.error.ts). The sentence about N8N_RUNNERS_TASK_REQUEST_TIMEOUT is added only on self-hosted instances, which is why Cloud users don't see it.

Running Claude Code, Codex or Cursor on real repos, or shipping an AI agent? A Quick Review ($149 / ₹13,900, 1 working day) checks one repo, config or setup for leaked keys, risky agent permissions and MCP servers. Request a Quick Review

FAQ

What does 'Task request timed out' mean in n8n?

A Code node task waited for a task runner and none accepted it within N8N_RUNNERS_TASK_REQUEST_TIMEOUT (60 seconds by default). The runner is down, not ready, or at capacity.

How do I fix it on n8n Cloud?

Test with a one-line Code node; if that fails too, the runner is down and only n8n support can fix it. There are no runner settings on Cloud.

Which environment variables control it?

N8N_RUNNERS_TASK_REQUEST_TIMEOUT (default 60 s), N8N_RUNNERS_MAX_CONCURRENCY (default 10), N8N_RUNNERS_TASK_TIMEOUT (default 60 s) and N8N_RUNNERS_MODE (internal or external).

Why did every Code node fail in late August 2026?

On 2.37.x the JavaScript runner couldn't start because libatomic.so.1 was missing after the Node 26 update. n8n fixed it in 2.38.1 (#37106).

Related errors

Sources

Read 5 Dec 2026. These tools change often: if a step no longer matches, the linked page wins.

Related free tools