如何停止 artisan queue:listen 命令吃掉所有 CPU?

How to stop artisan queue:listen command eating all CPU?

我是 运行 队列侦听器,在 Windows 7 笔记本电脑上使用命令 php artisan queue:listen --sleep=10 --tries=3。我的计算机有 4 个核心 CPU,进程不断消耗我 CPU 负载的 25%。我尝试增加睡眠参数,但它根本没有帮助。队列中没有作业。我正在使用数据库队列。怎么解决,我的电脑很热

运行 将其作为守护进程来阻止它启动越来越多的应用程序实例:

php artisan queue:work connection --daemon

来自the docs

The queue:work Artisan command includes a --daemon option for forcing the queue worker to continue processing jobs without ever re-booting the framework. This results in a significant reduction of CPU usage when compared to the queue:listen command