Hi,
running version 1.33.1 Self hosted.
I have 4 workflows
- inital (sends data to next workflow)
- subworkflow (runs in each of the workflows > this works as expected sind the workflow continues after that)
- workflow execution 1 (sends data to workflow execution 2)
- 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