Wait For Sub-Workflow Completion

Hi,

running version 1.33.1 Self hosted.

I have 4 workflows

  1. inital (sends data to next workflow)
  2. subworkflow (runs in each of the workflows > this works as expected sind the workflow continues after that)
  3. workflow execution 1 (sends data to workflow execution 2)
  4. workflow execution 2 (sends data to workflow execution 1)

I did configure the last node to Wait For Sub-Workflow Completion but it seems that somehow execution 1 and 2 do not wait until they are finished. Maybe because they got started from the inital one?

I had todo this because of this problem CPU 100% with workflow running

Now I can see many executions at one time and they only finsh when all is done from all workflows but somehow I got this Error

Problem loading data
Request failed with status code 502

this indicates of out of memory also the server error is this

MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 editorUiConnected listeners added to [Push]. Use emitter.setMaxListeners() to increase limit

So the question is how can I modify my workflow so it will wait until the sub-workflows finised? Or is it enough to increase the Max Listerners within the n8n Server? If yes how todo this?

This is one of the workflow executions

and this is the end part of the workflow I did already put in the wait but seems not to help

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:

I think I found the problem. Disabling this and it works now

1 Like

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