An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Refactor scheduling of container status and log drain checks
Andras Bacsai2b74ca274684
diff --git a/app/Console/Kernel.php b/app/Console/Kernel.phpindex 99ca75352e..51e4cfc171 100644--- a/app/Console/Kernel.php+++ b/app/Console/Kernel.php@@ -18,7 +18,6 @@ use App\Models\Server;use App\Models\Team;use Illuminate\Console\Scheduling\Schedule;use Illuminate\Foundation\Console\Kernel as ConsoleKernel;-use Illuminate\Support\Sleep;class Kernel extends ConsoleKernel{@@ -77,28 +76,13 @@ class Kernel extends ConsoleKernel$containerServers = $servers->where('settings.is_swarm_worker', false)->where('settings.is_build_server', false);}foreach ($containerServers as $server) {- $schedule->job(new ContainerStatusJob($server))->everyTwoMinutes()->onOneServer()->before(function () {- if (isCloud()) {- $wait = rand(5, 20);- Sleep::for($wait)->seconds();- }- });+ $schedule->job(new ContainerStatusJob($server))->everyMinute()->onOneServer();if ($server->isLogDrainEnabled()) {- $schedule->job(new CheckLogDrainContainerJob($server))->everyTwoMinutes()->onOneServer()->before(function () {- if (isCloud()) {- $wait = rand(5, 20);- Sleep::for($wait)->seconds();- }- });+ $schedule->job(new CheckLogDrainContainerJob($server))->everyMinute()->onOneServer();}}foreach ($servers as $server) {- $schedule->job(new ServerStatusJob($server))->everyTwoMinutes()->onOneServer()->before(function () {- if (isCloud()) {- $wait = rand(5, 20);- Sleep::for($wait)->seconds();- }- });+ $schedule->job(new ServerStatusJob($server))->everyMinute()->onOneServer();}}private function instance_auto_update($schedule)