mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
fail job instead of runtime exception
This commit is contained in:
@@ -45,7 +45,8 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
||||
public function handle()
|
||||
{
|
||||
if (!$this->server->isServerReady($this->tries)) {
|
||||
throw new \RuntimeException('Server is not reachable.');
|
||||
$this->fail('Server is not reachable.');
|
||||
return;
|
||||
};
|
||||
try {
|
||||
if ($this->server->isSwarm()) {
|
||||
|
||||
Reference in New Issue
Block a user