How do I make the webhook start only when the other one finishes?

I have a very complex scenario that I process the content and send to Shopify. The problem is that the webhook is starting one after the other, causing problems with my Shopify api, which has request limits. I even put some sleeps in the operations but it didn’t help. How do you recommend that I configure the webhook to start only when the entire operation is complete, while the rest remains in queue? Thank you.

In addition, I receive around 25 webhook requests at once. Each request requires 500 to 1000 operations and has around 3MB of DATA TRANSFER per request.

You may try to enable sequential processing.


Thank you very much. It worked out. Hugs