N8N Re-Executing all prior nodes in a workflow during each node test

Each ‘test step’ click reruns all nodes before it, each step of the way.

I have noticed that, while stepping through each node in a workflow and clicking the 'test step" button that it doesn’t just use the data that was output from the step before it. Instead, it is rerunning the entire workflow. In other words, if I step through node 2, node 1 runs again. When I move to Step 3, Nodes 1 and 2 run again. Step 4, nodes 1,2, and 3 run again, and so forth.

Since I am using some SERP scrapers and AI APIs, this is also causing usage/spend every time it re-runs. This feels like new behavior. I’ve been using N8N pretty intensively for about four months and this just started doing this.

Anyone else experiencing this? I don’t think its the workflow…

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.83.2
  • Database (default: SQLite): sqlite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: ubuntu

hello @ericgr

It may rerun the previous nodes. If you want to be sure the nodes won’t be executed, you should pin their output

Hi @barn4k - thanks for your reply.

I failed to mention the actual problem here which is that I did, in fact, have data pinned every time. And it STILL re-ran the execution.

This was happening on one particular workflow. I’m thinking now that perhaps something else in the workflow needed some data not provided by the pinned data, but I’ll have to look some more.

I’ll see if I can spin up a video to post here once I jump back into it.

Thanks again -

Same here. has someone found a solution yet?

this is extremly annoying when there are node for LLMs or API tools in previous worklow steps that always costs tokens/money. there must be a way to create a bigger/more complex workflows and debugging individual nodes without paying money for irrelevant previous workflow nodes.

hello @DomBe

Use the pin option

@barn4k already did that - still same result that it starts the process almost all over again. any other ideas?

I typically pin data and then run the nodes 1 by 1 by clicking the run on that node like this

So if my data in pinned in node before, it doesn’t seem to trigger a whole run again which is nice.

@DomBe Hope this helps

tried this also by pinning and testing it node by node. But in very big/complex workflows this can’t be the best solution n8n offers. Takes ages if you want to debug a node at the end of the workflow. Do you do the same approach in your workflows if they are really big/complext?

@DomBe Hello,

Yes sometimes I have to when working out whats wrong with it, also I use debug logs, sometimes this helps, and console to see issues.

regards,

Samuel

@DomBe This also happened to me and I was very concerned how fast my api credits were going to run out, I just pinned the data for the ai agents and that made the workflow quicker. Although a execute single node without running everything before is something n8n should work on.