| 
...
 | 
...
 | 
@@ -6,11 +6,18 @@ use Swoole\Process; | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 include_once __DIR__."/../vendor/autoload.php";
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 exec("ps -aux|grep -E \"mail-serve-sync-list\" -c",$exec);
 | 
| 
 | 
 | 
 if(intval($exec[0]) > 20){
 | 
| 
 | 
 | 
     exit;
 | 
| 
 | 
 | 
 }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 swoole_set_process_name("mail-serve-sync-list");
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 \Co\run(function (){
 | 
| 
 | 
 | 
     $goNum = 0;
 | 
| 
 | 
 | 
     while (true){
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         if($goNum>=200){
 | 
| 
 | 
 | 
         if($goNum>=50){
 | 
| 
 | 
 | 
             break;
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
 
 | 
...
 | 
...
 | 
 |