mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix indexing scheduler trying to index when Elasticsearch is disabled (#19805)
Fix #19646
This commit is contained in:
parent
d54e7ee61e
commit
d0c9ac3919
@ -7,6 +7,8 @@ class Scheduler::IndexingScheduler
|
|||||||
sidekiq_options retry: 0
|
sidekiq_options retry: 0
|
||||||
|
|
||||||
def perform
|
def perform
|
||||||
|
return unless Chewy.enabled?
|
||||||
|
|
||||||
indexes.each do |type|
|
indexes.each do |type|
|
||||||
with_redis do |redis|
|
with_redis do |redis|
|
||||||
ids = redis.smembers("chewy:queue:#{type.name}")
|
ids = redis.smembers("chewy:queue:#{type.name}")
|
||||||
|
Loading…
Reference in New Issue
Block a user