fix: revert random container job delay

This commit is contained in:
Andras Bacsai
2023-12-13 15:40:57 +01:00
parent 638bcf9732
commit db13dd9304
3 changed files with 3 additions and 5 deletions

View File

@@ -32,9 +32,10 @@ class DeleteResourceJob implements ShouldQueue, ShouldBeEncrypted
try {
$server = $this->resource->destination->server;
if (!$server->isFunctional()) {
$this->resource->delete();
$this->resource->forceDelete();
return 'Server is not functional';
}
$this->resource->delete();
switch ($this->resource->type()) {
case 'application':
StopApplication::run($this->resource);
@@ -56,7 +57,6 @@ class DeleteResourceJob implements ShouldQueue, ShouldBeEncrypted
break;
}
if ($this->resource->type() === 'service') {
$this->resource->delete();
DeleteService::dispatch($this->resource);
} else {
$this->resource->forceDelete();