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
throw errors in jobs
Andras Bacsaib674a0ed884c
diff --git a/app/Actions/Server/UpdateCoolify.php b/app/Actions/Server/UpdateCoolify.phpindex 35b51f7628..fa0718d175 100644--- a/app/Actions/Server/UpdateCoolify.php+++ b/app/Actions/Server/UpdateCoolify.php@@ -44,6 +44,7 @@ class UpdateCoolifyray('InstanceAutoUpdateJob failed');ray($th->getMessage());send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());+ throw $th;}}diff --git a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php b/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.phpindex a2ccd5298a..82d898149c 100644--- a/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php+++ b/app/Http/Livewire/Project/New/GithubPrivateRepositoryDeployKey.php@@ -43,7 +43,7 @@ class GithubPrivateRepositoryDeployKey extends Component'publish_directory' => 'Publish directory',];private object $repository_url_parsed;- private GithubApp|GitlabApp $git_source;+ private GithubApp|GitlabApp|null $git_source = null;private string $git_host;private string $git_repository;private string $git_branch;diff --git a/app/Jobs/ApplicationContainerStatusJob.php b/app/Jobs/ApplicationContainerStatusJob.phpindex 6930fc69a3..2f529e1212 100644--- a/app/Jobs/ApplicationContainerStatusJob.php+++ b/app/Jobs/ApplicationContainerStatusJob.php@@ -46,8 +46,9 @@ class ApplicationContainerStatusJob implements ShouldQueue, ShouldBeUnique$this->application->status = $status;$this->application->save();}- } catch (\Exception $e) {- ray($e->getMessage());+ } catch (\Exception $th) {+ ray($th->getMessage());+ throw $th;}}}diff --git a/app/Jobs/ApplicationDeploymentJob.php b/app/Jobs/ApplicationDeploymentJob.phpindex 5a76b26ba1..5f24d4ab8e 100644--- a/app/Jobs/ApplicationDeploymentJob.php+++ b/app/Jobs/ApplicationDeploymentJob.php@@ -136,6 +136,7 @@ class ApplicationDeploymentJob implements ShouldQueue} catch (Exception $e) {ray($e);$this->fail($e);+ throw $e;} finally {if (isset($this->docker_compose_base64)) {$readme = generate_readme_file($this->application->name, $this->application_deployment_queue->updated_at);diff --git a/app/Jobs/CheckResaleLicenseJob.php b/app/Jobs/CheckResaleLicenseJob.phpindex 96211451b7..30f9ff198f 100644--- a/app/Jobs/CheckResaleLicenseJob.php+++ b/app/Jobs/CheckResaleLicenseJob.php@@ -24,6 +24,7 @@ class CheckResaleLicenseJob implements ShouldQueue} catch (\Throwable $th) {send_internal_notification('CheckResaleLicenseJob failed with: ' . $th->getMessage());ray($th);+ throw $th;}}}diff --git a/app/Jobs/CleanupInstanceStuffsJob.php b/app/Jobs/CleanupInstanceStuffsJob.phpindex e67a562bdc..b133279ea8 100644--- a/app/Jobs/CleanupInstanceStuffsJob.php+++ b/app/Jobs/CleanupInstanceStuffsJob.php@@ -31,6 +31,7 @@ class CleanupInstanceStuffsJob implements ShouldQueue, ShouldBeUnique} catch (\Exception $e) {send_internal_notification('CleanupInstanceStuffsJob failed with error: ' . $e->getMessage());ray($e->getMessage());+ throw $e;}}diff --git a/app/Jobs/DatabaseBackupJob.php b/app/Jobs/DatabaseBackupJob.phpindex 44e5601bad..6e1ee2f0c6 100644--- a/app/Jobs/DatabaseBackupJob.php+++ b/app/Jobs/DatabaseBackupJob.php@@ -97,7 +97,7 @@ class DatabaseBackupJob implements ShouldQueue} catch (\Throwable $th) {ray($th->getMessage());send_internal_notification('DatabaseBackupJob failed with: ' . $th->getMessage());- //throw $th;+ throw $th;}}diff --git a/app/Jobs/DatabaseContainerStatusJob.php b/app/Jobs/DatabaseContainerStatusJob.phpindex c331d3d4f5..80a641db23 100644--- a/app/Jobs/DatabaseContainerStatusJob.php+++ b/app/Jobs/DatabaseContainerStatusJob.php@@ -50,6 +50,7 @@ class DatabaseContainerStatusJob implements ShouldQueue, ShouldBeUnique} catch (\Exception $e) {send_internal_notification('DatabaseContainerStatusJob failed with: ' . $e->getMessage());ray($e->getMessage());+ throw $e;}}}diff --git a/app/Jobs/DockerCleanupJob.php b/app/Jobs/DockerCleanupJob.phpindex 8216887547..6b8ccda795 100644--- a/app/Jobs/DockerCleanupJob.php+++ b/app/Jobs/DockerCleanupJob.php@@ -51,6 +51,7 @@ class DockerCleanupJob implements ShouldQueue} catch (\Exception $e) {send_internal_notification('DockerCleanupJob failed with: ' . $e->getMessage());ray($e->getMessage());+ throw $e;}}diff --git a/app/Jobs/ProxyCheckJob.php b/app/Jobs/ProxyCheckJob.phpindex 6316c204a6..ea8fe967da 100755--- a/app/Jobs/ProxyCheckJob.php+++ b/app/Jobs/ProxyCheckJob.php@@ -34,7 +34,7 @@ class ProxyCheckJob implements ShouldQueue} catch (\Throwable $th) {ray($th->getMessage());send_internal_notification('ProxyCheckJob failed with: ' . $th->getMessage());- //throw $th;+ throw $th;}}}diff --git a/app/Jobs/ProxyContainerStatusJob.php b/app/Jobs/ProxyContainerStatusJob.phpindex ddd6e5b8d5..ed63ed8fec 100644--- a/app/Jobs/ProxyContainerStatusJob.php+++ b/app/Jobs/ProxyContainerStatusJob.php@@ -58,6 +58,8 @@ class ProxyContainerStatusJob implements ShouldQueue, ShouldBeUnique$this->server->save();}send_internal_notification('ProxyContainerStatusJob failed with: ' . $e->getMessage());+ ray($e->getMessage());+ throw $e;}}}diff --git a/app/Jobs/ProxyStartJob.php b/app/Jobs/ProxyStartJob.phpindex 7f1df63778..4e2331a681 100755--- a/app/Jobs/ProxyStartJob.php+++ b/app/Jobs/ProxyStartJob.php@@ -31,6 +31,7 @@ class ProxyStartJob implements ShouldQueue} catch (\Throwable $th) {send_internal_notification('ProxyStartJob failed with: ' . $th->getMessage());ray($th->getMessage());+ throw $th;}}}diff --git a/app/Jobs/ResourceStatusJob.php b/app/Jobs/ResourceStatusJob.phpindex 4ff4063d43..efd6d14456 100644--- a/app/Jobs/ResourceStatusJob.php+++ b/app/Jobs/ResourceStatusJob.php@@ -39,6 +39,8 @@ class ResourceStatusJob implements ShouldQueue, ShouldBeUnique}} catch (\Exception $th) {send_internal_notification('ResourceStatusJob failed with: ' . $th->getMessage());+ ray($th);+ throw $th;}}}diff --git a/app/Jobs/SubscriptionInvoiceFailedJob.php b/app/Jobs/SubscriptionInvoiceFailedJob.phpindex 3d0e1bb8d4..d6750f9532 100755--- a/app/Jobs/SubscriptionInvoiceFailedJob.php+++ b/app/Jobs/SubscriptionInvoiceFailedJob.php@@ -36,6 +36,8 @@ class SubscriptionInvoiceFailedJob implements ShouldQueue});} catch (\Throwable $th) {send_internal_notification('SubscriptionInvoiceFailedJob failed with: ' . $th->getMessage());+ ray($th->getMessage());+ throw $th;}}}