Fix indexing scheduler trying to index when Elasticsearch is disabled (#19805)

Fix #19646
th-downstream
Eugen Rochko 2 years ago committed by GitHub
parent d67659a2cd
commit 4c6f7ee8ca

@ -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}")

Loading…
Cancel
Save