Support the ongoing development of Laravel.io →
Queues Jobs Laravel

Hi!

I have some questions regarding queues... if I have 4 queues: [high, medium, low, default] and I have 2 process running:

php artisan queue:work --queue=high,default

php artisan queue:work

  • The second one, will take all the remaining jobs in FIFO ?
  • Will the 1st take other jobs if there is no "high" and "default" ?

What I need is something like this:

php artisan queue:work --queue= [ main priority always: "high". later, take remaining in FIFO order]

php artisan queue:work --queue= [ take "medium" and "low" first, and later take remaining in FIFO order]

Its possible? the idea is to have a process only for the highest priority (and if its idle, take the next in FIFO) and the second process is take "medium" first and "low" in second, and left "default" and "high" in the same "third" priority, as I have an exclusive process taking "high"

thanks! :D

Last updated 2 years ago.
0

Hi Punchi,

Have a look at the manual here Queue Priorities which allows you to set the order in which the queues get executed Good luck

0

Sign in to participate in this thread!

Eventy

Your banner here too?

punchi punchi Joined 15 Sep 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.

© 2025 Laravel.io - All rights reserved.