Hi there,
I managed to emulate parallel processing natively on N8N with the below workflow:
The tasks it performs are below as well:
When I performing below command run, I got the output {"finishedSet":[{"a":1,"b":4,"c":9}]}
, even though I expected {"finishedSet":[{"a":1,"b":4,"c":9}, {"a":1,"b":4,"c":9}]}
. Can you see any issue on my approach? Thanks!!
curl -X POST "https://your_n8n_url_here/webhook-test/parallel" -H "Content-Type: application/json" -d '{ "requests": [ { "request_id": 1, "method": "POST", "url": "https://your_n8n_webhook_url_here/webhook/post-subworkflow", "data": { "a": 1, "b": 2, "c": 3 } }, { "request_id": 2, "method": "POST", "url": "https://your_n8n_webhook_url_here/webhook/post-subworkflow", "data": { "a": 1, "b": 2, "c": 3 } } ] }'
You can try with GET method as well.
curl -X POST "https://your_n8n_url_here/webhook-test/parallel" -H "Content-Type: application/json" -d '{ "requests": [ { "request_id": 1, "method": "POST", "url": "https://your_n8n_webhook_url_here/webhook/post-subworkflow", "data": { "a": 1, "b": 2, "c": 3 } }, { "request_id": 2, "method": "GET", "url": "https://your_n8n_webhook_url_here/webhook/post-subworkflow" ] }'