{"record":{"id":"8e8965e1137e93a9","repo":"ankane/searchkick","slug":"active-job-not-found","errorCode":null,"errorMessage":"Active Job not found","messagePattern":"Active Job not found","errorType":"exception","errorClass":"Searchkick::Error","httpStatus":null,"severity":"error","filePath":"lib/searchkick/record_indexer.rb","lineNumber":17,"sourceCode":"module Searchkick\n  class RecordIndexer\n    attr_reader :index\n\n    def initialize(index)\n      @index = index\n    end\n\n    def reindex(records, mode:, method_name:, ignore_missing:, full: false, single: false, job_options: nil)\n      # prevents exists? check if records is a relation\n      records = records.to_a\n      return if records.empty?\n\n      case mode\n      when :async\n        unless defined?(ActiveJob)\n          raise Error, \"Active Job not found\"\n        end\n\n        job_options ||= {}\n\n        # only add if set for backwards compatibility\n        extra_options = {}\n        if ignore_missing\n          extra_options[:ignore_missing] = ignore_missing\n        end\n\n        # we could likely combine ReindexV2Job, BulkReindexJob, and ProcessBatchJob\n        # but keep them separate for now\n        if single\n          record = records.first\n\n          # always pass routing in case record is deleted\n          # before the async job runs\n          if record.respond_to?(:search_routing)","sourceCodeStart":1,"sourceCodeEnd":35,"githubUrl":"https://github.com/ankane/searchkick/blob/93e901a75b11a25101668a616e006b158251b16e/lib/searchkick/record_indexer.rb#L1-L35","documentation":"Error \"Active Job not found\" thrown in ankane/searchkick.","triggerScenarios":"Thrown at lib/searchkick/record_indexer.rb:17 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"93e901a75b11a25101668a616e006b158251b16e","analyzedAt":"2026-08-21T19:06:23.767Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}