作者 lyh

gx

... ... @@ -40,12 +40,8 @@ class UpdateProgress extends Command
*/
public function handle()
{
while (true){
$project_id = Redis::rpop('updateProgress');
if(!$project_id){
sleep(2);
continue;
}
$project_id = Redis::rpop('updateProgress');
while ($project_id){
echo date('Y-m-d H:i:s') . ' start: ' . $project_id . PHP_EOL;
try {
ProjectServer::useProject($project_id);
... ...
... ... @@ -36,6 +36,7 @@ class Kernel extends ConsoleKernel
$schedule->command('inquiry_count')->dailyAt('01:00')->withoutOverlapping(1); // 询盘统计数据,每天凌晨执行一次
$schedule->command('domain_info')->dailyAt('01:00')->withoutOverlapping(1);// 更新域名|证书结束时间,每天凌晨1点执行一次
$schedule->command('last_inquiry')->dailyAt('04:00')->withoutOverlapping(1);// 最近一次询盘信息
$schedule->command('update_progress')->everyThirtyMinutes()->withoutOverlapping(1);//监控更新
}
/**
... ...