WooCommerce Webhook - Multiple times

Hello everyone

At times I have a problem with my workflow. This is started by the WooCommerce Order Created Trigger. Now it is the case that WooCommerce has often sent the same order 100% identically again within a few seconds. Since the whole workflow takes about 5 - 10 seconds to run through, I am now looking for a solution to prevent the same WC order from running through the workflow again.

Does anyone have any ideas?

Thank you very much

image

What is the error message (if any)?

None

Information on your n8n setup

  • n8n version: 1.16.
  • Database (default: SQLite): SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main): own, main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Debian

On make was the same problem.
I think you have to use midlware base, ex supabase to chck that order workflow was runs.

1 Like

@Kaol If I have understood you correctly, you mean, for example, writing the order number to an external middleware (MySQL DB, Supabase etc.) and checking it first. I have already considered this, but I don’t think it will work as some of the executions take place within a few milliseconds. That’s not enough.

Hi @seljo-ch, n8n doesn’t really have a built-in de-duplication logic for webhooks. However, if you’re okay with adding additional middleware you could consider this approach. Essentially have one workflow just accepting all webhooks (including the duplicates), then sending a message to a message broker. You can then avail of the Parallel Message Processing Limit option to process only dataset at a time and will be able to perform your custom de-duplication check.

1 Like

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