我很难弄清楚为什么它不在主管中运行,但在项目中运行时却能正常运行。
当我尝试跑步时
<块引用>php artisan queue:work redis
在我的项目上,它返回
但是如果我通过主管运行它,我会得到这个日志
这是我在 /etc/supervisor/conf.d 中的 laravel-worker 程序名称
谢谢!
答案 0 :(得分:0)
我看到主管将启动 8 个工作进程,这与第一种方式运行 1 个进程不同。 如果有效,您可以尝试指定 numprocs = 1。 请检查代码逻辑。