在主管 redis 上运行的 Laravel 队列

时间:2021-04-13 03:33:14

标签: laravel redis supervisord

我很难弄清楚为什么它不在主管中运行,但在项目中运行时却能正常运行。

当我尝试跑步时

<块引用>

php artisan queue:work redis

在我的项目上,它返回

enter image description here

但是如果我通过主管运行它,我会得到这个日志

enter image description here

这是我在 /etc/supervisor/conf.d 中的 laravel-worker 程序名称

enter image description here

谢谢!

1 个答案:

答案 0 :(得分:0)

我看到主管将启动 8 个工作进程,这与第一种方式运行 1 个进程不同。 如果有效,您可以尝试指定 numprocs = 1。 请检查代码逻辑。