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 ServerCheckJob to remove unused properties and improve performance
Andras Bacsai0c77a826c36d
diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.phpindex 26cb3c4f5b..f949f4ec04 100644--- a/app/Jobs/ServerCheckJob.php+++ b/app/Jobs/ServerCheckJob.php@@ -25,19 +25,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueuepublic $containers;- public $applications;-- public $databases;-- public $services;-- public $previews;-- public function backoff(): int- {- return isDev() ? 1 : 3;- }-public function __construct(public Server $server) {}public function handle()@@ -47,11 +34,6 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueuereturn 'Server is not reachable or not ready.';}- $this->applications = $this->server->applications();- $this->databases = $this->server->databases();- $this->services = $this->server->services()->get();- $this->previews = $this->server->previews();-if (! $this->server->isSwarmWorker() && ! $this->server->isBuildServer()) {['containers' => $this->containers, 'containerReplicates' => $containerReplicates] = $this->server->getContainers();if (is_null($this->containers)) {