Steps
How we tested, and what is real
On 29 October 2026 we ran 16 real executions on a self-hosted n8n 2.43.7 (SQLite, internal JavaScript task runner, Node 24), each a production webhook followed by one slow node: a Wait node, a Code node that sleeps or loops, or an HTTP Request to a local server that answers after 20 seconds. We started n8n three times with different timeout settings. Every message, status and time below comes from the n8n log, the execution list and the HTTP response we got.
Which timeout hit you? Read the message
There are four different timeouts in n8n, and each one leaves a different trace.
The execution was cancelled because it timed outin the log, with the execution marked canceled, is the workflow timeout.Task execution timed out after 5 seconds(or after 300) on a Code node is the task runner timeout.timeout of 2000ms exceededis the HTTP Request node's own Timeout option. A webhook caller only seesThere was a problem executing the workfloworError in workflowwith HTTP 500, so look at the execution in n8n to know which one it was.The workflow timeout: EXECUTIONS_TIMEOUT
By default n8n has no workflow timeout (
EXECUTIONS_TIMEOUT=-1): our 12-second Wait finished normally and the webhook answered 200 after 12.2 s. WithEXECUTIONS_TIMEOUT=5the same workflow stopped at 5.1 s, and so did a Code node sleeping 12 s, a Code node busy-looping 12 s, and an HTTP Request waiting on a slow server. The webhook got HTTP 500 with{"code":0,"message":"There was a problem executing the workflow"}. The value is in seconds. Raise it, or set-1to remove the limit, in n8n's environment and restart."Cancelled manually" when nobody clicked anything
A timed-out execution was stored with status canceled, not error, and its error text said
The execution was cancelled manually(Code nodes showedTask cancelled by user). Nobody stopped it: that is just how n8n records a timeout. If you filter the execution list on Error, you will not see these runs.The per-workflow Timeout setting and EXECUTIONS_TIMEOUT_MAX
In the workflow settings, Timeout Workflow sets a limit for one workflow. It worked even with no global timeout: a 3-second setting stopped our 12-second Wait at 3.1 s. With a global timeout of 5, the lower per-workflow 3 won. But
EXECUTIONS_TIMEOUT_MAXcaps that setting silently: withEXECUTIONS_TIMEOUT_MAX=2, our 3-second workflow was cancelled at 2.1 s and the UI gave no warning. If a workflow stops earlier than the value you set, check that variable.Code node: N8N_RUNNERS_TASK_TIMEOUT
The task runner has its own limit per Code node run, 300 seconds by default, set with
N8N_RUNNERS_TASK_TIMEOUT. With it at 5, a Code node awaiting a 12-second sleep failed withTask execution timed out after 5 seconds(status error, not canceled). A synchronous busy loop was worse: the node only saidNode execution failed, and the log showedTask runner timed out during task, restarting..., so the runner was killed and restarted, which also hits any other Code node running at that moment. n8n also warns at startup that the 300 s default will drop to 60 s in a future version, so set it explicitly if you have long Code nodes.HTTP Request node Timeout is a normal error
With the node option Timeout at 2000 ms, the HTTP Request to our slow server failed at 2.2 s with
timeout of 2000ms exceeded, status error andError in workflowfor the webhook. Unlike the workflow timeout, this is a normal node error, so Retry On Fail and On Error: Continue work on it. Without the option, the node waits as long as the server does, and only the workflow timeout stops it.Long jobs behind a webhook
A webhook that waits for the last node keeps the caller waiting for the whole run, and the caller sees a 500 if the timeout hits. For long jobs, set the Webhook to respond Immediately, or put a Respond to Webhook node early, then let the slow part run. Waiting for hours belongs in a Wait node (see the Wait guide), not in a raised timeout.
Get alerted when a workflow times out
An Error Workflow (one starting with an Error Trigger, chosen in the workflow settings) did fire for a timed-out, canceled execution and for the HTTP node timeout error. So you can send yourself a message on timeouts the same way as on errors.
All test results
Real executions on n8n 2.43.7. Left: the setting and the workflow. Right: what n8n did.
| Test | Result |
|---|---|
| EXECUTIONS_TIMEOUT=5, Wait 12 s | 500 after 5.1 s, There was a problem executing the workflow; log The execution was cancelled because it timed out; status canceled |
| EXECUTIONS_TIMEOUT=5, Code async sleep 12 s | 500 at 5.1 s, status canceled, Task cancelled by user |
| EXECUTIONS_TIMEOUT=5, Code busy loop 12 s | Stopped at 5.1 s, status canceled |
| EXECUTIONS_TIMEOUT=5, HTTP Request to 20 s server | 500 at 5.1 s, status canceled |
| EXECUTIONS_TIMEOUT=5, HTTP Request Timeout 2000 | 500 at 2.2 s, Error in workflow; timeout of 2000ms exceeded; status error |
| EXECUTIONS_TIMEOUT=5, workflow Timeout 3 | Cancelled at 3.1 s (lower value wins) |
| Default (-1), Wait 12 s | 200 after 12.2 s, no timeout |
| Default (-1), workflow Timeout 3 | Cancelled at 3.1 s, status canceled |
| N8N_RUNNERS_TASK_TIMEOUT=5, Code async sleep 12 s | 500 at 5.1 s, Task execution timed out after 5 seconds; status error |
| N8N_RUNNERS_TASK_TIMEOUT=5, Code busy loop 12 s | 500 at 5.1 s, Node execution failed; log Task runner timed out during task, restarting... |
| EXECUTIONS_TIMEOUT_MAX=2, workflow Timeout 3 | Silently capped: cancelled at 2.1 s |
| Error Workflow, timed-out execution | Error Trigger fired |
| Error Workflow, HTTP node timeout error | Error Trigger fired |
Checklist
- Open the execution: canceled means the workflow timeout, error with
Task execution timed outmeans the task runner,timeout of ...ms exceededmeans the HTTP node option. - Workflow timeout:
EXECUTIONS_TIMEOUT(seconds, -1 = none) or Timeout Workflow in the workflow settings. - Stops earlier than your setting? Check
EXECUTIONS_TIMEOUT_MAX. - Long Code node: set
N8N_RUNNERS_TASK_TIMEOUTexplicitly, and avoid synchronous loops that freeze the runner. - Slow API: set the HTTP Request Timeout option so the failure is a normal error you can retry.
- Webhook callers: respond early for long jobs.
- Timeouts are filtered out of Error in the execution list but still trigger the Error Workflow.
Good to know
- Waiting for hours or days: n8n Wait node not resuming. Answering a webhook early: n8n Respond to Webhook not working.
- Slow or failing API calls: n8n HTTP Request node errors. Code node failures: n8n Code node errors. Runs that crash instead of timing out: n8n out of memory errors.
- Alerts on failures: n8n Error Workflow not triggering. Every error text from our guides: n8n error message index.
What we did not test
n8n Cloud plan limits, queue mode workers, external task runners, the Python Code node, manual runs from the editor, and timeouts longer than a few seconds.
Start from a working agent
FAQ
Why does n8n say the execution was cancelled manually when nobody stopped it?
A workflow timeout is stored as a canceled execution with the text "The execution was cancelled manually". In our tests that was always EXECUTIONS_TIMEOUT or the per-workflow Timeout setting.
How do I increase the n8n workflow timeout?
Set EXECUTIONS_TIMEOUT in seconds (or -1 for no limit) in n8n's environment and restart, or set Timeout Workflow in the workflow settings. EXECUTIONS_TIMEOUT_MAX silently caps the per-workflow value.
What does "Task execution timed out after 300 seconds" mean in n8n?
A Code node ran longer than the task runner allows. Raise N8N_RUNNERS_TASK_TIMEOUT, or split the work. A synchronous loop also makes the runner restart.
How do I fix "timeout of 2000ms exceeded" in the n8n HTTP Request node?
It is the node's own Timeout option. Raise it, or keep it and turn on Retry On Fail, since it is a normal node error.
Does the n8n Error Workflow run when a workflow times out?
Yes. In our tests the Error Trigger fired for a timed-out, canceled execution and for an HTTP Request node timeout.
Related guides
- n8n out of memory? 9 crash tests, and the setting to raise
- n8n Postgres Trigger not working or not firing: 27 tests, fixed
- n8n Python Code node not working? Task runner errors, 9 tests
- n8n static data not saving? 35 runs, every cause found
- Get an alert when a cron job or n8n workflow silently stops running
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes