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
feat: add high priority queue
Andras Bacsaifcb3d71cb4c7
diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 65e9f2e93f..2944b746d5 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -340,7 +340,7 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueueprivate function post_deployment(){if ($this->server->isProxyShouldRun()) {- GetContainersStatus::dispatch($this->server);+ GetContainersStatus::dispatch($this->server)->onQueue('high');// dispatch(new ContainerStatusJob($this->server));}$this->next(ApplicationDeploymentStatus::FINISHED->value);diff --git a/app/Jobs/CoolifyTask.php b/app/Jobs/CoolifyTask.phpindex 5418daa223..e5f4dfd5e3 100755--- a/app/Jobs/CoolifyTask.php+++ b/app/Jobs/CoolifyTask.php@@ -23,7 +23,8 @@ class CoolifyTask implements ShouldBeEncrypted, ShouldQueuepublic bool $ignore_errors = false,public $call_event_on_finish = null,public $call_event_data = null- ) {}+ ) {+ }/*** Execute the job.diff --git a/app/Livewire/Project/Application/Heading.php b/app/Livewire/Project/Application/Heading.phpindex d224f4a9d2..feb54c7f04 100644--- a/app/Livewire/Project/Application/Heading.php+++ b/app/Livewire/Project/Application/Heading.php@@ -45,7 +45,7 @@ class Heading extends Componentpublic function check_status($showNotification = false){if ($this->application->destination->server->isFunctional()) {- GetContainersStatus::dispatch($this->application->destination->server);+ GetContainersStatus::dispatch($this->application->destination->server)->onQueue('high');// dispatch(new ContainerStatusJob($this->application->destination->server));} else {dispatch(new ServerStatusJob($this->application->destination->server));diff --git a/app/Livewire/Project/Application/Previews.php b/app/Livewire/Project/Application/Previews.phpindex f29cd43ce5..df64c3fd35 100644--- a/app/Livewire/Project/Application/Previews.php+++ b/app/Livewire/Project/Application/Previews.php@@ -186,7 +186,7 @@ class Previews extends Componentinstant_remote_process(["docker rm -f $name"], $this->application->destination->server, throwError: false);}}- GetContainersStatus::dispatchSync($this->application->destination->server);+ GetContainersStatus::dispatchSync($this->application->destination->server)->onQueue('high');$this->dispatch('reloadWindow');} catch (\Throwable $e) {return handleError($e, $this);diff --git a/app/Notifications/Server/Revived.php b/app/Notifications/Server/Revived.phpindex e7d3baf3ec..8eaadf3592 100644--- a/app/Notifications/Server/Revived.php+++ b/app/Notifications/Server/Revived.php@@ -24,7 +24,7 @@ class Revived extends Notification implements ShouldQueueif ($this->server->unreachable_notification_sent === false) {return;}- GetContainersStatus::dispatch($server);+ GetContainersStatus::dispatch($server)->onQueue('high');// dispatch(new ContainerStatusJob($server));}diff --git a/config/horizon.php b/config/horizon.phpindex ef7df3f1bc..939d74883d 100644--- a/config/horizon.php+++ b/config/horizon.php@@ -182,7 +182,7 @@ return ['defaults' => ['s6' => ['connection' => 'redis',- 'queue' => ['default'],+ 'queue' => ['high', 'default'],'balance' => env('HORIZON_BALANCE', 'auto'),'maxTime' => 0,'maxJobs' => 0,