write a production and consumption program for redis queue in laravel
execute the consumption command, specifying that the connection connection and queue queue name can be consumed normally, but not without specifying the queue name. Why? Shouldn"t you not specify that all queue data will be executed? If each has to specify the specific queue name, then if there are many business cases, the supervisor process management is not very troublesome, each business has to configure a command?
ClivedeMacBook-Pro:future clive$ php artisan queue:work redis --queue=order_process
[2018-10-29 06:05:45][sPm52R5M4HyiaiJGfvoWmXz5U4mKZcRf] Processing: App\Jobs\ProcessOrder
[2018-10-29 06:05:45][sPm52R5M4HyiaiJGfvoWmXz5U4mKZcRf] Processed: App\Jobs\ProcessOrder
//
^C
ClivedeMacBook-Pro:future clive$ php artisan queue:work redis --queue
//......
127.0.0.1:6379> lrange queues:order_process 0 -1
1) "{\"displayName\":\"App\\\\Jobs\\\\ProcessOrder\",\"job\":\"Illuminate\\\\Queue\\\\CallQueuedHandler@call\",\"maxTries\":null,\"timeout\":null,\"timeoutAt\":null,\"data\":{\"commandName\":\"App\\\\Jobs\\\\ProcessOrder\",\"command\":\"O:21:\\\"App\\\\Jobs\\\\ProcessOrder\\\":8:{s:8:\\\"\\u0000*\\u0000order\\\";O:45:\\\"Illuminate\\\\Contracts\\\\Database\\\\ModelIdentifier\\\":4:{s:5:\\\"class\\\";s:16:\\\"App\\\\Models\\\\Order\\\";s:2:\\\"id\\\";i:35;s:9:\\\"relations\\\";a:0:{}s:10:\\\"connection\\\";s:5:\\\"mysql\\\";}s:6:\\\"\\u0000*\\u0000job\\\";N;s:10:\\\"connection\\\";s:5:\\\"redis\\\";s:5:\\\"queue\\\";s:13:\\\"order_process\\\";s:15:\\\"chainConnection\\\";N;s:10:\\\"chainQueue\\\";N;s:5:\\\"delay\\\";N;s:7:\\\"chained\\\";a:0:{}}\"},\"id\":\"sPm52R5M4HyiaiJGfvoWmXz5U4mKZcRf\",\"attempts\":0}"