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.)
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.
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.
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 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.
I ran into the same issue where all my nodes were executing twice. I found a workaround that’s not exactly elegant, but it works. I added a “Stop and Error” node at the end of the workflow to force it to stop after running once.
It’s definitely not the cleanest solution, but since my workflow runs automatically every day, this has been the most reliable fix so far.
I think this is a different issue, @Douglasvf . It’s not that workflows ‘run twice’ ‘its that, when testing a workflow and you say ‘execute step’ in a node, it reruns the ENTIRE workflow again, including all calls to AI tools and so on, even if you pinned a node that is after the API calls, thus using up a bunch of credits.
FWIW, I have found the only way to prevent the ‘run every time’ scenario is to let it run one time, and then pin EVERY node in the workflow. That seems to stop it from running again.
Its super annoying because most of time the “re-run” happens is just testing something like, can I change the output of the JSON which might be 7 nodes further along then an API call, but it re runs the whole workflow anyway.
I found on reddit that you need to change OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS to false in the docker-compose or variables. Look it up, it worked for me! it’s so much better than pinning!