fix: only check server status in container status job
This commit is contained in:
parent
fe6073ba7d
commit
123e6eddd7
2 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,7 @@ public function handle(): void
|
|||
{
|
||||
// ray("checking log drain statuses for {$this->server->id}");
|
||||
try {
|
||||
if (!$this->server->isServerReady()) {
|
||||
if (!$this->server->isFunctional()) {
|
||||
return;
|
||||
};
|
||||
$containers = instant_remote_process(["docker container ls -q"], $this->server, false);
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public function handle(): void
|
|||
{
|
||||
ray("checking server status for {$this->server->id}");
|
||||
try {
|
||||
if ($this->server->isServerReady()) {
|
||||
if ($this->server->isFunctional()) {
|
||||
$this->cleanup(notify: false);
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue