Problem Description:
When using the Execute Workflow Node in a parent workflow, if the sub-workflow runs for more than 5 minutes, the node returns an empty result (empty array []).
Details:
The “Wait for Workflow to Finish” option is enabled in the Execute Workflow Node settings.
The sub-workflow successfully completes all its actions, but no data is returned to the parent workflow.
The parent workflow correctly waits for the sub-workflow to finish and does not terminate prematurely.
This issue only occurs with long-running processes (5 minutes or longer).
Expected Behavior:
The parent workflow should correctly receive data from the sub-workflow after it finishes, even if the execution takes longer than 5 minutes.
Questions:
Are there any time limits for the Execute Workflow Node?
How can I reliably pass data from a long-running sub-workflow back to the parent workflow?
I tried to reproduce your scenario.
In my case, in fact, main workflow didn’t receive any data from a subworkflow, however short wait time was set.
Once I deactivated Wait node in the subWorkflow the data started passing through as expected.
This might be a bug. I noticed you have enterprise license. Did you reach out to n8n support by the channel dedicated to the enterprise users? This might be a faster way to obtain help with your particular setup.
thanks for the reply.
Yes, if the subcenary does not wait more than 5 minutes, then the external script wakes up to receive data. But a sub-script can run for more than 5 minutes.
No, we did not contact n8n.
We decided to contact the community first.
So I solved this problem by saving the result of the subcenaries to the database, and the external script already works with it.