lib/searchkick/process_queue_job.rb in searchkick-2.4.0 vs lib/searchkick/process_queue_job.rb in searchkick-2.5.0
- old
+ new
@@ -1,7 +1,7 @@
module Searchkick
class ProcessQueueJob < ActiveJob::Base
- queue_as :searchkick
+ queue_as { Searchkick.queue_name }
def perform(class_name:)
model = class_name.constantize
limit = model.searchkick_index.options[:batch_size] || 1000