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
Update container and server status job
Andras Bacsai5f2ad56529b1
diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.phpindex f42e1e7ead..a8b2c1a9a2 100644--- a/app/Jobs/ContainerStatusJob.php+++ b/app/Jobs/ContainerStatusJob.php@@ -22,7 +22,7 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted{use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;- public $tries = 5;+ public $tries = 4;public function backoff(): int{return isDev() ? 1 : 3;diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.phpindex 58f30b18d9..20b564fe8f 100644--- a/app/Jobs/ServerStatusJob.php+++ b/app/Jobs/ServerStatusJob.php@@ -34,9 +34,10 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted{ray("checking server status for {$this->server->id}");try {- if ($this->server->isFunctional()) {- $this->cleanup(notify: false);- }+ if (!$this->server->isServerReady(4)) {+ throw new \RuntimeException('Server is not reachable.');+ };+ $this->cleanup(notify: false);} catch (\Throwable $e) {send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage());ray($e->getMessage());