release the job rather than throwing

This commit is contained in:
2025-03-30 13:18:16 +00:00
parent 40097e81c0
commit 2daab6a458
2 changed files with 3 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ class WaitForServerToConnect implements ShouldQueue, ShouldBeEncrypted
if (! $process->isSuccessful()) {
logger('server not reachable');
logger($process->getErrorOutput());
throw new \Exception('Server is not reachable');
$this->release(15);
return;
}
$this->server->update([