Merge pull request #1662 from coollabsio/next

Do not report server is not ready
This commit is contained in:
Andras Bacsai 2024-01-18 12:45:05 +01:00 committed by GitHub
commit dd0ad04384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,10 +37,10 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
public function handle()
{
if (!$this->server->isServerReady($this->tries)) {
throw new \RuntimeException('Server is not ready.');
};
try {
if (!$this->server->isServerReady($this->tries)) {
throw new \RuntimeException('Server is not ready.');
};
if ($this->server->isFunctional()) {
$this->cleanup(notify: false);
}