简体   繁体   中英

Laravel queue running on supervisor redis

I am having a hard time figuring out why it's not running in supervisor but works fine when running it on project.

When I try to run

php artisan queue:work redis

on my project and it returns

在此处输入图像描述

but if I run it via supervisor, I getting this log

在此处输入图像描述

this is my laravel-worker program name inside /etc/supervisor/conf.d

在此处输入图像描述

Thank you!

I see that supervisor will launch 8 worker processes that is different from running 1 process in first way. You can try specify numprocs = 1, if it works. Please check the code logic.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM