Rabbit do not wait the end of execution to send other item queue

Hey guys

I’ve been using Rabbitmq for a few years, but now I needed to build a flow that calls another flow through the n8n node.

I set the value 1 for parallel processing. But even so, as you will see in the image, the trigger happens seconds after the previous one, while the first processing took much longer.

See the image below: The first event started at 17:41:42 and lasted 50.609s. And the second item in the queue started at 17:41:47h, just 5 seconds later.
Captura de tela 2024-05-24 173857

In this other image is the Rabbit configuration:

And in this other one, the image of the total flow of the “first part”:

See that this flow is started by the Rabbit node, but it calls another flow through the “Execute Workflow” node. (which by the way calls another “Execute Workflow”)

And, as I update a database on the same record, I need one flow to finish to run the next one.

Am I doing something wrong?

About n8n
n8n Version 1.26.0
Source Code GitHub - n8n-io/n8n: Free and source-available fair-code licensed workflow automation tool. Easily automate tasks across different services.
SQLite
Self hosted
Ubuntu - Docker

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:

hello @Evandro_Caruso

For how long is it set to wait in the Wait node?

And I don’t like that part of the workflow, as it may cause some issues ( you have 2 exit points in the workflow)

Hummm…

Good point about these 2 exits… I will integrate them using Merge node.

Forget about Wait node… I just put it to try to understand… I already take it off…

I will come back with notice…

@barn4k

Great News!!! You were right!

The n8n was indicating as “flow finished” when “one path” had finished… Not when the entire flow had finished.

I placed a Merge node waiting for the 2 inputs and it is working perfectly!

Thank you very much for your insight and your time.

image

2 Likes

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