{"record":{"id":"3605ed2763da84a9","repo":"mongodb/mongoid","slug":"invalid-async-query-executor-option-executor","errorCode":null,"errorMessage":"Invalid async_query_executor option: %{executor}.","messagePattern":"Invalid async_query_executor option: %(.+?)\\.","errorType":"exception","errorClass":"Mongoid::Errors::InvalidQueryExecutor","httpStatus":null,"severity":"error","filePath":"lib/mongoid/contextual/mongo/documents_loader.rb","lineNumber":67,"sourceCode":"        # Returns suitable executor according to Mongoid config options.\n        #\n        # @param [ String | Symbol] name The query executor name, can be either\n        #   :immediate or :global_thread_pool. Defaulted to `async_query_executor`\n        #   config option.\n        #\n        # @return [ Concurrent::ImmediateExecutor | Concurrent::ThreadPoolExecutor ] The executor\n        #   to be used to execute document loading tasks.\n        #\n        # @raise [ Errors::InvalidQueryExecutor ] If an unknown name is provided.\n        def self.executor(name = Mongoid.async_query_executor)\n          case name.to_sym\n          when :immediate\n            immediate_executor\n          when :global_thread_pool\n            global_thread_pool_async_query_executor\n          else\n            raise Errors::InvalidQueryExecutor.new(name)\n          end\n        end","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/mongodb/mongoid/blob/0da0e23d71adfbad31128c18e5e2c8c301c6f7c4/lib/mongoid/contextual/documents_loader.rb#L67","documentation":"Error \"Invalid async_query_executor option: %{executor}.\" thrown in mongodb/mongoid.","triggerScenarios":"Thrown at lib/mongoid/contextual/documents_loader.rb:67 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":"0da0e23d71adfbad31128c18e5e2c8c301c6f7c4","analyzedAt":"2026-08-23T06:25:47.656Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}