From 7a1d1eaae703af5b6032f6b85f877c5f517e43eb Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 23 Nov 2025 01:28:20 +0000 Subject: [PATCH] Adjustments for droppping index --- app/Console/Commands/Elastic/RebuildElasticIndexes.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/Elastic/RebuildElasticIndexes.php b/app/Console/Commands/Elastic/RebuildElasticIndexes.php index 859b564ff6..83c1553568 100644 --- a/app/Console/Commands/Elastic/RebuildElasticIndexes.php +++ b/app/Console/Commands/Elastic/RebuildElasticIndexes.php @@ -18,6 +18,7 @@ use App\Models\VendorContact; use Elastic\Elasticsearch\ClientBuilder; use Illuminate\Support\Facades\Artisan; use Illuminate\Support\Facades\DB; +use Illuminate\Support\Facades\Redis; class RebuildElasticIndexes extends Command { @@ -392,7 +393,7 @@ class RebuildElasticIndexes extends Command case 'redis': // Redis: pending jobs in list + reserved jobs in processing set - $redis = app('redis')->connection(config("queue.connections.{$connection}.connection")); + $redis = Redis::connection('sentinel-default'); $prefix = config('database.redis.options.prefix', ''); // Pending jobs in the queue list