...
|
...
|
@@ -22,16 +22,10 @@ function start(){ |
|
|
include_once __DIR__."/../vendor/autoload.php";
|
|
|
_echo("业务进程({$worker_id})启动成功");
|
|
|
|
|
|
$run_timer = time();
|
|
|
$goNum = 0;
|
|
|
// 循环阻塞
|
|
|
while (true){
|
|
|
|
|
|
// 运行超过1天的 停止
|
|
|
if($run_timer < (time()-21600)){
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
// 需要同步的id
|
|
|
$id = redis()->lPop('sync_email_lists');
|
|
|
|
...
|
...
|
|