ankane/searchkick · error · Searchkick::Error
Active Job not found
Error message
Active Job not found
What it means
Error "Active Job not found" thrown in ankane/searchkick.
Source
Thrown at lib/searchkick/record_indexer.rb:17
module Searchkick
class RecordIndexer
attr_reader :index
def initialize(index)
@index = index
end
def reindex(records, mode:, method_name:, ignore_missing:, full: false, single: false, job_options: nil)
# prevents exists? check if records is a relation
records = records.to_a
return if records.empty?
case mode
when :async
unless defined?(ActiveJob)
raise Error, "Active Job not found"
end
job_options ||= {}
# only add if set for backwards compatibility
extra_options = {}
if ignore_missing
extra_options[:ignore_missing] = ignore_missing
end
# we could likely combine ReindexV2Job, BulkReindexJob, and ProcessBatchJob
# but keep them separate for now
if single
record = records.first
# always pass routing in case record is deleted
# before the async job runs
if record.respond_to?(:search_routing)View on GitHub (pinned to 93e901a75b)
When it happens
Trigger: Thrown at lib/searchkick/record_indexer.rb:17 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of ankane/searchkick@93e901a75b (2026-08-21).
Data as JSON: /api/errors/8e8965e1137e93a9.
Report an issue: GitHub.