queue concurrency control
I have a bg action that sends whatsapp messages on order fulfillment. However, most stores bulk fulfill orders which means the messages are spammed together. I reduced the concurrency to 1 but I want to do something like giving atleast 10 seconds difference between the last queued action. Is this possible by any means?
4 Replies
Hello,
I would not recommend that you put concurrency to 1 if you enqueue a lot of actions.
If you want to run actions only once per 10 seconds, you will have to add additional functionality with a scheduled global action and a database table. Basically, the database table will act as a queue and the global action will run the logic
I don't want so much complexity, is there not a way to read existing queues? I really want this functionality, along eith dequeing.
There's no way to read queues programmatically (yet). You also can't set a rate limit like that. The only way to accomplish what you want is by following my recommendation. It shouldn't be too complex to build though
okay i hope you can fast forward this feature please it is really core for my app