mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 07:12:33 +00:00
Update container and server status job
This commit is contained in:
1 parent
cd842bc1b2
commit
5f2ad56529
2 files changed
+5
-4
No files matched your search
@@ -34,9 +34,10 @@ class ServerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
||||
{
|
||||
ray("checking server status for {$this->server->id}");
|
||||
try {
|
||||
if ($this->server->isFunctional()) {
|
||||
$this->cleanup(notify: false);
|
||||
}
|
||||
if (!$this->server->isServerReady(4)) {
|
||||
throw new \RuntimeException('Server is not reachable.');
|
||||
};
|
||||
$this->cleanup(notify: false);
|
||||
} catch (\Throwable $e) {
|
||||
send_internal_notification('ServerStatusJob failed with: ' . $e->getMessage());
|
||||
ray($e->getMessage());
|
||||
|
||||
Reference in new issue
Block a user