From e95b3330966335394ad692061519400a0823beb8 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Thu, 21 Mar 2024 12:25:37 +0100 Subject: [PATCH] fix: [CLI] Fix redisReady for dragonfly --- app/Console/Command/AdminShell.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Command/AdminShell.php b/app/Console/Command/AdminShell.php index 544e3a54f..3555fcfd2 100644 --- a/app/Console/Command/AdminShell.php +++ b/app/Console/Command/AdminShell.php @@ -616,9 +616,9 @@ class AdminShell extends AppShell try { $redis = RedisTool::init(); for ($i = 0; $i < 10; $i++) { - $persistence = $redis->info('persistence'); - if (isset($persistence['loading']) && $persistence['loading']) { - $this->out('Redis is still loading...'); + $pong = $redis->ping(); + if ($pong !== true) { + $this->out('Redis is still loading... ' . $pong); sleep(1); } else { break;