Worflow that executes other workflows (memory issue)

hi

I have created several workflows that copies data from HTTP Request.
When I run it manually - everything works fine (it takes no more than a minute to finish it).
I built one workflow that executes those workflows one by one - and schedule that to be run once an hour.
And here is the problem. Almost every time this workflow crashes due to the out of memory error (usual at the last wokflow) and when I check this workflow it runs 40-50 minutes before it crashes and it crashes on the HTTP Request (which receives only 500 records).
And again - when I run it manually - it takes 15 seconds and whole workflow is finished.
Can I do something to avoid such error?

Thanks in advance
Regards
Krzysztof

3 Likes

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @Krzysztof_M,

Could we see the workflow you have that calls the others? And maybe one or two examples of the wfs it is calling?

There’s a chance it might be doubling the data everytime which could be weighing it down

Sure. But can you tell me how can I share it with you?

you can select all nodes, or click ctrl+a > ctrl+c and then past the content here after you have pressed the Code </> button

1 Like
2 Likes

I don’t see any issues here. Can you provide the master workflow, which executes this one?

3 Likes

hi guys

do you have any idea what I can do/change to avoid such errors?

Regards
Krzysztof

Hi @Krzysztof_M

thanks for sharing those!

In general, the n8n memory will clear itself when a sub workflow finishes but you need to make sure you don’t return everything to the parent workflow.
You could try to set a Set Node at the end of each sub-workflow that will run once and only return whats absolutely necessary to the parent workflow.

If it’s just getting a task done like in your BigQuery workflow, you could simply “finish off” the workflow like so:

image

Let us know if this helped! :raised_hands:

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