{"record":{"id":"1f92cb1960c4aa18","repo":"mongodb/mongoid","slug":"invalid-global-executor-concurrency-option","errorCode":null,"errorMessage":"Invalid global_executor_concurrency option.","messagePattern":"Invalid global_executor_concurrency option\\.","errorType":"exception","errorClass":"Mongoid::Errors::InvalidGlobalExecutorConcurrency","httpStatus":null,"severity":"error","filePath":"lib/mongoid/config/validators/async_query_executor.rb","lineNumber":25,"sourceCode":"      # configuration. Used during application bootstrapping.\n      #\n      # @api private\n      module AsyncQueryExecutor\n        extend self\n\n        # Validate the Mongoid configuration options related to\n        # the async query executor.\n        #\n        # @param [ Hash ] options The configuration options.\n        #\n        # @raises [ Mongoid::Errors::InvalidGlobalExecutorConcurrency ]\n        #   Raised if the options are invalid.\n        #\n        # @api private\n        def validate(options)\n          return unless options.key?(:async_query_executor)\n          if options[:async_query_executor].to_sym == :immediate && !options[:global_executor_concurrency].nil?\n            raise Errors::InvalidGlobalExecutorConcurrency\n          end\n        end\n      end\n    end\n  end\nend\n","sourceCodeStart":7,"sourceCodeEnd":32,"githubUrl":"https://github.com/mongodb/mongoid/blob/0da0e23d71adfbad31128c18e5e2c8c301c6f7c4/lib/mongoid/config/validators/async_query_executor.rb#L7-L32","documentation":"Error \"Invalid global_executor_concurrency option.\" thrown in mongodb/mongoid.","triggerScenarios":"Thrown at lib/mongoid/config/validators/async_query_executor.rb:25 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"}