Open AliceXT opened 4 years ago
这个报错发生在服务器的redis服务报错了以后,think queue:work没有正确的退出,导致系统空挂队列但实际上进程并没有在跑。 supervisor的进程文件
[program:message] ... command=/usr/bin/php /xxx/think queue:work --daemon ...
报错代码
[ 2020-08-21T11:56:57+08:00 ][ error ] [0]read error on connection[/data/wwwroot/huanwei/message/vendor/topthink/think-queue/src/queue/connector/Redis.php:143]
composer.json
{ "name": "karsonzhang/fastadmin", "description": "the fastest admin framework", "type": "project", "keywords": [ "fastadmin", "thinkphp" ], "homepage": "https://www.fastadmin.net/", "license": "Apache-2.0", "authors": [ { "name": "Karson", "email": "karsonzhang@163.com" } ], "require": { "ext-json": "*", "php": ">=5.4.0", "topthink/framework": "~5.0.24", "endroid/qr-code": "^1.9", "topthink/think-captcha": "^1.0", "mtdowling/cron-expression": "^1.2", "phpmailer/phpmailer": "^5.2", "karsonzhang/fastadmin-addons": "~1.1.4", "overtrue/pinyin": "~3.0", "phpoffice/phpexcel": "^1.8", "overtrue/wechat": "~4.0", "topthink/think-queue": "1.1.6", "topthink/think-migration": "^1.0", "firebase/php-jwt": "^5.0" }, "config": { "preferred-install": "dist" } }
我希望的改进方向是如果数据库链接出错,队列进程应该报错退出,而不是继续空挂这运行
这个报错发生在服务器的redis服务报错了以后,think queue:work没有正确的退出,导致系统空挂队列但实际上进程并没有在跑。 supervisor的进程文件
报错代码
composer.json