resource->type()) { case 'application': StopApplication::run($this->resource); $this->resource->forceDelete(); break; case 'standalone-postgresql': StopDatabase::run($this->resource); $this->resource->forceDelete(); break; case 'standalone-redis': StopDatabase::run($this->resource); $this->resource->forceDelete(); break; case 'standalone-mongodb': StopDatabase::run($this->resource); $this->resource->forceDelete(); break; case 'standalone-mysql': StopDatabase::run($this->resource); $this->resource->forceDelete(); break; case 'standalone-mariadb': StopDatabase::run($this->resource); $this->resource->forceDelete(); break; case 'service': DeleteService::dispatch($this->resource); break; } } catch (\Throwable $e) { send_internal_notification('ContainerStoppingJob failed with: ' . $e->getMessage()); throw $e; } } }