improve cleanup schedule

This commit is contained in:
xiaomlove
2024-03-23 05:19:15 +08:00
parent 66a32b2d3a
commit 92bfa5df84
2 changed files with 3 additions and 3 deletions

View File

@@ -61,7 +61,7 @@ class Kernel extends ConsoleKernel
$interval = 7200;
}
$schedule->job(new CheckCleanup())
->cron(sprintf("*/%d * * * *", intval($interval/60)))
->cron(sprintf("*/%d * * * *", ceil($interval/60)))
->withoutOverlapping();
}
}