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 ServerStatusJob middleware and uniqueId() method
Andras Bacsai66b41b3d4c91
diff --git a/app/Jobs/ServerStatusJob.php b/app/Jobs/ServerStatusJob.phpindex c162d3bc33..2cdf4d547a 100644--- a/app/Jobs/ServerStatusJob.php+++ b/app/Jobs/ServerStatusJob.php@@ -17,17 +17,22 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypteduse Dispatchable, InteractsWithQueue, Queueable, SerializesModels;public ?int $disk_usage = null;+ public $tries = 4;+ public function backoff(): int+ {+ return isDev() ? 1 : 3;+ }public function __construct(public Server $server){}public function middleware(): array{- return [(new WithoutOverlapping($this->server->id))->dontRelease()];+ return [(new WithoutOverlapping($this->server->uuid))];}public function uniqueId(): int{- return $this->server->id;+ return $this->server->uuid;}public function handle(): void