...
|
...
|
@@ -23,7 +23,7 @@ function start(){ |
|
|
|
|
|
\Swoole\Timer::tick(1000,function() use(&$pool){
|
|
|
|
|
|
if(redis()->getOriginData('email_sync_stop_num') >= WORKER_NUM+2 ){
|
|
|
if(redis()->getOriginData('email_sync_stop_num') >= WORKER_NUM+1 ){
|
|
|
$pool->shutdown();
|
|
|
}
|
|
|
|
...
|
...
|
|