throw errors in jobs
This commit is contained in:
parent
90dba34ecc
commit
b674a0ed88
14 changed files with 19 additions and 5 deletions
|
|
@ -44,6 +44,7 @@ public function __invoke(bool $force)
|
||||||
ray('InstanceAutoUpdateJob failed');
|
ray('InstanceAutoUpdateJob failed');
|
||||||
ray($th->getMessage());
|
ray($th->getMessage());
|
||||||
send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());
|
send_internal_notification('InstanceAutoUpdateJob failed: ' . $th->getMessage());
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ class GithubPrivateRepositoryDeployKey extends Component
|
||||||
'publish_directory' => 'Publish directory',
|
'publish_directory' => 'Publish directory',
|
||||||
];
|
];
|
||||||
private object $repository_url_parsed;
|
private object $repository_url_parsed;
|
||||||
private GithubApp|GitlabApp $git_source;
|
private GithubApp|GitlabApp|null $git_source = null;
|
||||||
private string $git_host;
|
private string $git_host;
|
||||||
private string $git_repository;
|
private string $git_repository;
|
||||||
private string $git_branch;
|
private string $git_branch;
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,9 @@ public function handle(): void
|
||||||
$this->application->status = $status;
|
$this->application->status = $status;
|
||||||
$this->application->save();
|
$this->application->save();
|
||||||
}
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $th) {
|
||||||
ray($e->getMessage());
|
ray($th->getMessage());
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -136,6 +136,7 @@ public function handle(): void
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
ray($e);
|
ray($e);
|
||||||
$this->fail($e);
|
$this->fail($e);
|
||||||
|
throw $e;
|
||||||
} finally {
|
} finally {
|
||||||
if (isset($this->docker_compose_base64)) {
|
if (isset($this->docker_compose_base64)) {
|
||||||
$readme = generate_readme_file($this->application->name, $this->application_deployment_queue->updated_at);
|
$readme = generate_readme_file($this->application->name, $this->application_deployment_queue->updated_at);
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ public function handle(): void
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
send_internal_notification('CheckResaleLicenseJob failed with: ' . $th->getMessage());
|
send_internal_notification('CheckResaleLicenseJob failed with: ' . $th->getMessage());
|
||||||
ray($th);
|
ray($th);
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ public function handle(): void
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
send_internal_notification('CleanupInstanceStuffsJob failed with error: ' . $e->getMessage());
|
send_internal_notification('CleanupInstanceStuffsJob failed with error: ' . $e->getMessage());
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,7 @@ public function handle(): void
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
ray($th->getMessage());
|
ray($th->getMessage());
|
||||||
send_internal_notification('DatabaseBackupJob failed with: ' . $th->getMessage());
|
send_internal_notification('DatabaseBackupJob failed with: ' . $th->getMessage());
|
||||||
//throw $th;
|
throw $th;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,7 @@ public function handle(): void
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
send_internal_notification('DatabaseContainerStatusJob failed with: ' . $e->getMessage());
|
send_internal_notification('DatabaseContainerStatusJob failed with: ' . $e->getMessage());
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ public function handle(): void
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
send_internal_notification('DockerCleanupJob failed with: ' . $e->getMessage());
|
send_internal_notification('DockerCleanupJob failed with: ' . $e->getMessage());
|
||||||
ray($e->getMessage());
|
ray($e->getMessage());
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ public function handle()
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
ray($th->getMessage());
|
ray($th->getMessage());
|
||||||
send_internal_notification('ProxyCheckJob failed with: ' . $th->getMessage());
|
send_internal_notification('ProxyCheckJob failed with: ' . $th->getMessage());
|
||||||
//throw $th;
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,8 @@ public function handle(): void
|
||||||
$this->server->save();
|
$this->server->save();
|
||||||
}
|
}
|
||||||
send_internal_notification('ProxyContainerStatusJob failed with: ' . $e->getMessage());
|
send_internal_notification('ProxyContainerStatusJob failed with: ' . $e->getMessage());
|
||||||
|
ray($e->getMessage());
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ public function handle()
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
send_internal_notification('ProxyStartJob failed with: ' . $th->getMessage());
|
send_internal_notification('ProxyStartJob failed with: ' . $th->getMessage());
|
||||||
ray($th->getMessage());
|
ray($th->getMessage());
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,6 +39,8 @@ public function handle(): void
|
||||||
}
|
}
|
||||||
} catch (\Exception $th) {
|
} catch (\Exception $th) {
|
||||||
send_internal_notification('ResourceStatusJob failed with: ' . $th->getMessage());
|
send_internal_notification('ResourceStatusJob failed with: ' . $th->getMessage());
|
||||||
|
ray($th);
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,8 @@ public function handle()
|
||||||
});
|
});
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
send_internal_notification('SubscriptionInvoiceFailedJob failed with: ' . $th->getMessage());
|
send_internal_notification('SubscriptionInvoiceFailedJob failed with: ' . $th->getMessage());
|
||||||
|
ray($th->getMessage());
|
||||||
|
throw $th;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue