How to wait for for multiple triggers

I’m not sure how to best describe what I’m trying to achieve. At the moment I have two triggers, a Click on execute workflow which calls a HTTP POST, in the same workflow I have a RabbitMQ trigger alongside it. When I do the post I want to wait for the rabbit mq trigger to consume a bus item, if this bus item contains the same id of the HTTP Post response I want to carry forward with the workflow otherwise I want to rabbitmq trigger to keep waiting.

ATM when I call the mouse click trigger, it calls the post and immediately ends the workflow as a success before there’s evne a chance for rabbit trigger to consume the event, what can I do here?

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:

Hi @tdupia, welcome to the community!

Each of the triggers in your workflow would start a completely separate workflow execution. So it will not be possible to start your workflow using a manual execution trigger and then wait for an incoming RabbitMQ message using a separate RabbitMQ trigger node I am afraid.

Perhaps you want to build your workflow without the manual (click to execute) trigger node? This way your workflow can simply be started through a RabbitMQ message, and you can then make your HTTP request without needing another trigger node.

Is it possible to have a node essentially wait for an event then? I can see that the wait node supports waiting on a webhook call, it would be really useful to have similar ability but to wait on a bus event instead

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