This commit is contained in:
Andras Bacsai
2023-11-05 09:49:23 +01:00
parent 0a5a101ef4
commit 6f673d7a07
6 changed files with 10 additions and 8 deletions

View File

@@ -25,6 +25,9 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function __construct(public Server $server)
{
if (isDev()) {
$this->handle();
}
}
public function middleware(): array
{

View File

@@ -57,11 +57,10 @@ class StopResourceJob implements ShouldQueue, ShouldBeEncrypted
StopService::run($this->resource);
break;
}
$this->resource->delete();
} catch (\Throwable $e) {
send_internal_notification('ContainerStoppingJob failed with: ' . $e->getMessage());
throw $e;
} finally {
$this->resource->delete();
}
}
}