Support the ongoing development of Laravel.io →
posted 9 years ago
Queues
Last updated 1 year ago.
0

Yeah sleep is not the solution here. You will need to implement the solution in your queue handler. One solution is to keep a global counter in cache and if the count has exceeded X calls per second, don't process the job, instead just release back into the queue.

0

@rickshawhobo Thanks for your reply. So, it seems we need to manually handle the circumstance.

Anyway, I'm still wondering why this is not supported out of the box. Do I misunderstand how the queue works? I mean is it okay if I just run all the jobs continuously?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

xdimension xdimension Joined 13 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.