使用database驱动,却会报redis错误
Closed this issue · 1 comments
lindaoling commented
版本:
"topthink/framework": "^6.0.0",
"topthink/think-queue": "^3.0",
配置:
return [
'default' => 'database',
'connections' => [
'sync' => [
'type' => 'sync',
],
'database' => [
...
],
'redis' => [
...
],
],
'failed' => [
'type' => 'none',
'table' => 'failed_jobs',
],
];
报错:
[think\exception\ErrorException]
Redis::get(): send of 42 bytes failed with errno=10054 远程主机强迫关闭了一个现有的连接。
报错后进程退出
yunwuxin commented
报redis错误又不一定是因为驱动问题,比如你用的database驱动,但是你处理任务的时候 可能会用redis缓存之类的 这时出错也是报redis错误