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.
@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.