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
fix: revert random container job delay
Andras Bacsaidb13dd930424
diff --git a/app/Jobs/ContainerStatusJob.php b/app/Jobs/ContainerStatusJob.phpindex 0bdfca84e5..9989ed8cba 100644--- a/app/Jobs/ContainerStatusJob.php+++ b/app/Jobs/ContainerStatusJob.php@@ -40,8 +40,6 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncryptedpublic function handle(){- $rand = rand(1, 15);- Sleep::for($rand)->seconds();try {if (!$this->server->isServerReady()) {return;diff --git a/app/Jobs/DeleteResourceJob.php b/app/Jobs/DeleteResourceJob.phpindex 347eb40d00..cf7c6462a0 100644--- a/app/Jobs/DeleteResourceJob.php+++ b/app/Jobs/DeleteResourceJob.php@@ -32,9 +32,10 @@ class DeleteResourceJob implements ShouldQueue, ShouldBeEncryptedtry {$server = $this->resource->destination->server;if (!$server->isFunctional()) {- $this->resource->delete();+ $this->resource->forceDelete();return 'Server is not functional';}+ $this->resource->delete();switch ($this->resource->type()) {case 'application':StopApplication::run($this->resource);@@ -56,7 +57,6 @@ class DeleteResourceJob implements ShouldQueue, ShouldBeEncryptedbreak;}if ($this->resource->type() === 'service') {- $this->resource->delete();DeleteService::dispatch($this->resource);} else {$this->resource->forceDelete();diff --git a/app/Livewire/Project/Shared/Danger.php b/app/Livewire/Project/Shared/Danger.phpindex d85dfb8761..39dc383104 100644--- a/app/Livewire/Project/Shared/Danger.php+++ b/app/Livewire/Project/Shared/Danger.php@@ -24,7 +24,7 @@ class Danger extends Componentpublic function delete(){try {- DeleteResourceJob::dispatch($this->resource);+ DeleteResourceJob::dispatchSync($this->resource);return $this->redirectRoute('project.resources', ['project_uuid' => $this->projectUuid,'environment_name' => $this->environmentName