This commit is contained in:
Andras Bacsai 2023-12-13 15:34:33 +01:00
parent b06b465ffa
commit 638bcf9732
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ class DeleteResourceJob implements ShouldQueue, ShouldBeEncrypted
$this->resource->delete(); $this->resource->delete();
DeleteService::dispatch($this->resource); DeleteService::dispatch($this->resource);
} else { } else {
$this->resource->delete(); $this->resource->forceDelete();
} }
} catch (\Throwable $e) { } catch (\Throwable $e) {
send_internal_notification('ContainerStoppingJob failed with: ' . $e->getMessage()); send_internal_notification('ContainerStoppingJob failed with: ' . $e->getMessage());

View File

@ -24,7 +24,7 @@ class Danger extends Component
public function delete() public function delete()
{ {
try { try {
DeleteResourceJob::dispatchSync($this->resource); DeleteResourceJob::dispatch($this->resource);
return $this->redirectRoute('project.resources', [ return $this->redirectRoute('project.resources', [
'project_uuid' => $this->projectUuid, 'project_uuid' => $this->projectUuid,
'environment_name' => $this->environmentName 'environment_name' => $this->environmentName