我正在尝试通过 laravel queue:work
分配工作在实时服务器(CentOS 7)中使用主管。主管正在运行,但作业未处理。我收到以下错误:
我的 worker 文件是:
[program:queue-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /home/maomin/public_html/bvend.xyz/artisan queue:work sqs --sleep=3 --tries=3 --max-time=3600 --daemon
autostart=true
autorestart=true
stopasgroup=true
killasgroup=true
user=apache
numprocs=8
redirect_stderr=true
stdout_logfile=/home/maomin/public_html/bvend.xyz/w.log
stopwaitsecs=3600
日志文件(/home/maomin/public_html/bvend.xyz/w.log)显示以下错误:The "--max-time" option does not exist.
我已经尝试了几乎所有的谷歌解决方案,但没有运气
最佳答案
通过执行以下操作解决了该问题:
已删除 --max-time=3600
并替换了 'sqs' 与 '数据库' 因为我正在使用数据库进行队列作业。
command=php /home/maomin/public_html/bvend.xyz/artisan queue:work sqs --sleep=3 --tries=3 --max-time=3600 --daemon
至command=php /home/maomin/public_html/bvend.xyz/artisan queue:work database --sleep=3 --tries=3 --daemon
关于laravel - 队列 worker :queue-worker_00: ERROR (spawn error) Laravel Supervisor CentOS 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65290142/