$worker->onWorkerStart = function($worker) { $client = new Client('redis://127.0.0.1:6379',['db'=>1]); $client->subscribe('task-'.$taskID, function($data){ //这里逻辑耗时比较长,超过600秒,第二个消息会出现 ...
我开了4个线程,在刚启动第一能够正常。后面就会出现部分线程的redis连接超时...