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

Fix #19646
pull/1892/head
Eugen Rochko 2022-11-05 22:31:52 +01:00 committed by GitHub
parent d54e7ee61e
commit d0c9ac3919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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