remove duplicated sentinel pull job

This commit is contained in:
ayntk-ai 2024-08-12 12:43:06 +02:00
parent b85b5e67bb
commit 365f957b8a
No known key found for this signature in database

View File

@ -79,7 +79,6 @@ public function handle()
}
GetContainersStatus::run($this->server, $this->containers, $containerReplicates);
$this->checkLogDrainContainer();
$this->checkSentinel();
}
} catch (\Throwable $e) {
@ -90,21 +89,6 @@ public function handle()
}
private function checkSentinel()
{
if ($this->server->isSentinelEnabled()) {
$sentinelContainerFound = $this->containers->filter(function ($value, $key) {
return data_get($value, 'Name') === '/coolify-sentinel';
})->first();
if ($sentinelContainerFound) {
$status = data_get($sentinelContainerFound, 'State.Status');
if ($status !== 'running') {
PullSentinelImageJob::dispatch($this);
}
}
}
}
private function serverStatus()
{
['uptime' => $uptime] = $this->server->validateConnection();