【问题标题】:queue-worker:queue-worker_00: ERROR (spawn error) Laravel Supervisor CentOS 7queue-worker:queue-worker_00: ERROR (spawn error) Laravel Supervisor CentOS 7
【发布时间】:2020-12-14 13:49:11
【问题描述】:

我正在尝试通过laravel queue:work 在实时服务器(CentOS 7)中使用主管分派工作。主管正在运行,但作业未处理。我收到以下错误:

我的工人档案是:

[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.  

我已经尝试了几乎所有的谷歌解决方案,但没有运气

【问题讨论】:

    标签: laravel laravel-5 centos supervisord laravel-queue


    【解决方案1】:

    通过以下操作解决了问题:

    删除 --max-time=3600 并用 'database' 替换 '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
    

    【讨论】:

      猜你喜欢
      • 2020-12-07
      • 1970-01-01
      • 2017-10-29
      • 1970-01-01
      • 2020-10-11
      • 2022-12-13
      • 2015-02-20
      • 2022-12-27
      • 2013-07-05
      相关资源
      最近更新 更多