正在显示
1 个修改的文件
包含
8 行增加
和
1 行删除
| @@ -6,11 +6,18 @@ use Swoole\Process; | @@ -6,11 +6,18 @@ use Swoole\Process; | ||
| 6 | 6 | ||
| 7 | include_once __DIR__."/../vendor/autoload.php"; | 7 | include_once __DIR__."/../vendor/autoload.php"; | 
| 8 | 8 | ||
| 9 | +exec("ps -aux|grep -E \"mail-serve-sync-list\" -c",$exec); | ||
| 10 | +if(intval($exec[0]) > 20){ | ||
| 11 | + exit; | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +swoole_set_process_name("mail-serve-sync-list"); | ||
| 15 | + | ||
| 9 | \Co\run(function (){ | 16 | \Co\run(function (){ | 
| 10 | $goNum = 0; | 17 | $goNum = 0; | 
| 11 | while (true){ | 18 | while (true){ | 
| 12 | 19 | ||
| 13 | - if($goNum>=200){ | 20 | + if($goNum>=50){ | 
| 14 | break; | 21 | break; | 
| 15 | } | 22 | } | 
| 16 | 23 | 
- 
请 注册 或 登录 后发表评论