Laravel multi-queue problem

Queues in

laravel can be assigned to different classes using onqueue .

1. Whether the queues under different classes are executed at the same time or in order.
2. What changes do you need to make to the queue.php configuration file in config when setting onqueue ?
clipboard.png

3. When I start a single queue, it is a command:

php artisan queue:work --daemon --quiet --queue=default --delay=3 --sleep=3 --tries=3

how do I start multiple queues? can I remove queue=defaule directly? Or do I need to execute such a process in a queue of onqueue?

Mar.07,2022

  • follow the basic principles and execute sequentially
  • read more documents

clipboard.png


I solved my doubts after conducting the experiment.
1. After the queues in laravel are classified using onQueue. There is no need to make any changes in the configuration of config (instead of changing the default in the configuration to {{default}} , as mentioned in an online tutorial).

2. When starting multiple queues,-- queue must be added. Multiple classes are separated by commas without default execution of default,. If you want queues of multiple classes to be started at the same time, you need to start multiple queue monitoring processes.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e59872-4553a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e59872-4553a.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?