Remove commented out code for delayed jobs in Kernel.php
This commit is contained in:
parent
e395d4ecee
commit
df964a094b
@ -78,35 +78,6 @@ private function check_resources($schedule)
|
|||||||
foreach ($servers as $server) {
|
foreach ($servers as $server) {
|
||||||
$schedule->job(new ServerStatusJob($server))->everyTwoMinutes()->onOneServer();
|
$schedule->job(new ServerStatusJob($server))->everyTwoMinutes()->onOneServer();
|
||||||
}
|
}
|
||||||
// Delayed Jobs
|
|
||||||
// foreach ($containerServers as $server) {
|
|
||||||
// $schedule
|
|
||||||
// ->call(function () use ($server) {
|
|
||||||
// $randomSeconds = rand(1, 40);
|
|
||||||
// $job = new ContainerStatusJob($server);
|
|
||||||
// $job->delay($randomSeconds);
|
|
||||||
// ray('dispatching container status job in ' . $randomSeconds . ' seconds');
|
|
||||||
// dispatch($job);
|
|
||||||
// })->name('container-status-' . $server->id)->everyMinute()->onOneServer();
|
|
||||||
// if ($server->isLogDrainEnabled()) {
|
|
||||||
// $schedule
|
|
||||||
// ->call(function () use ($server) {
|
|
||||||
// $randomSeconds = rand(1, 40);
|
|
||||||
// $job = new CheckLogDrainContainerJob($server);
|
|
||||||
// $job->delay($randomSeconds);
|
|
||||||
// dispatch($job);
|
|
||||||
// })->name('log-drain-container-check-' . $server->id)->everyMinute()->onOneServer();
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// foreach ($servers as $server) {
|
|
||||||
// $schedule
|
|
||||||
// ->call(function () use ($server) {
|
|
||||||
// $randomSeconds = rand(1, 40);
|
|
||||||
// $job = new ServerStatusJob($server);
|
|
||||||
// $job->delay($randomSeconds);
|
|
||||||
// dispatch($job);
|
|
||||||
// })->name('server-status-job-' . $server->id)->everyMinute()->onOneServer();
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
private function instance_auto_update($schedule)
|
private function instance_auto_update($schedule)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user