作者 邓超

xxx

... ... @@ -6,9 +6,6 @@ use Swoole\Process;
include_once __DIR__."/../vendor/autoload.php";
function start(){
// 删除停止运行的值
... ... @@ -22,6 +19,8 @@ function start(){
_echo("业务进程({$worker_id})启动成功");
swoole_set_process_name('php-email-sync-list-'.$worker_id);
include_once __DIR__."/../vendor/autoload.php";
$run_timer = time();
// 循环阻塞
while (true){
... ... @@ -72,6 +71,9 @@ function start(){
$pm->add(function (Process\Pool $pool, int $worker_id){
_echo("业务进程({$worker_id})启动成功,body");
swoole_set_process_name('php-email-sync-body-'.$worker_id);
include_once __DIR__."/../vendor/autoload.php";
$run_timer = time();
// 循环阻塞
while (true){
... ...