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(jobs): update middleware to prevent job release after expiration for CleanupInstanceStuffsJob, RestartProxyJob, and ServerCheckJob
Andras Bacsaif9faf3e40fb2
diff --git a/app/Jobs/CleanupInstanceStuffsJob.php b/app/Jobs/CleanupInstanceStuffsJob.phpindex 0084923420..60ae584897 100644--- a/app/Jobs/CleanupInstanceStuffsJob.php+++ b/app/Jobs/CleanupInstanceStuffsJob.php@@ -23,7 +23,7 @@ class CleanupInstanceStuffsJob implements ShouldBeEncrypted, ShouldBeUnique, Shopublic function middleware(): array{- return [(new WithoutOverlapping('cleanup-instance-stuffs'))->expireAfter(60)];+ return [(new WithoutOverlapping('cleanup-instance-stuffs'))->expireAfter(60)->dontRelease()];}public function handle(): voiddiff --git a/app/Jobs/RestartProxyJob.php b/app/Jobs/RestartProxyJob.phpindex 4e1ade0daa..a70ca518ca 100644--- a/app/Jobs/RestartProxyJob.php+++ b/app/Jobs/RestartProxyJob.php@@ -24,7 +24,7 @@ class RestartProxyJob implements ShouldBeEncrypted, ShouldQueuepublic function middleware(): array{- return [(new WithoutOverlapping($this->server->uuid))->expireAfter(60)];+ return [(new WithoutOverlapping($this->server->uuid))->expireAfter(60)->dontRelease()];}public function __construct(public Server $server) {}diff --git a/app/Jobs/ServerCheckJob.php b/app/Jobs/ServerCheckJob.phpindex ffa298390d..6114021610 100644--- a/app/Jobs/ServerCheckJob.php+++ b/app/Jobs/ServerCheckJob.php@@ -28,7 +28,7 @@ class ServerCheckJob implements ShouldBeEncrypted, ShouldQueuepublic function middleware(): array{- return [(new WithoutOverlapping($this->server->uuid))->expireAfter(60)];+ return [(new WithoutOverlapping($this->server->uuid))->expireAfter(60)->dontRelease()];}public function __construct(public Server $server) {}