mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
Fix server readiness check in ContainerStatusJob and ServerStatusJob
This commit is contained in:
@@ -39,7 +39,9 @@ class ContainerStatusJob implements ShouldQueue, ShouldBeEncrypted
|
||||
{
|
||||
ray("checking container statuses for {$this->server->id}");
|
||||
try {
|
||||
$this->server->checkServerRediness();
|
||||
if (!$this->server->isServerReady()) {
|
||||
throw new \Exception('Server is not ready.');
|
||||
};
|
||||
$containers = instant_remote_process(["docker container ls -q"], $this->server);
|
||||
if (!$containers) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user