From d0c9ac39190c71afb581836e770ebace4ad1ef1b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 5 Nov 2022 22:31:52 +0100 Subject: Fix indexing scheduler trying to index when Elasticsearch is disabled (#19805) Fix #19646 --- app/workers/scheduler/indexing_scheduler.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/workers/scheduler') diff --git a/app/workers/scheduler/indexing_scheduler.rb b/app/workers/scheduler/indexing_scheduler.rb index 3a6f47a29..c42396629 100644 --- a/app/workers/scheduler/indexing_scheduler.rb +++ b/app/workers/scheduler/indexing_scheduler.rb @@ -7,6 +7,8 @@ class Scheduler::IndexingScheduler sidekiq_options retry: 0 def perform + return unless Chewy.enabled? + indexes.each do |type| with_redis do |redis| ids = redis.smembers("chewy:queue:#{type.name}") -- cgit