{"record":{"id":"6ae10fd15eadb953","repo":"cube-js/cube","slug":"unknown-queue-driver-cacheandqueuedriver","errorCode":null,"errorMessage":"Unknown queue driver: ${cacheAndQueueDriver}","messagePattern":"Unknown queue driver: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cubejs-query-orchestrator/src/orchestrator/QueryQueue.ts","lineNumber":78,"sourceCode":"  queueDriverFactory?: (cacheAndQueueDriver: string, queueDriverOptions: any) => QueueDriverInterface,\n  skipQueue?: boolean,\n};\n\nfunction factoryQueueDriver(cacheAndQueueDriver: string, queueDriverOptions): QueueDriverInterface {\n  switch (cacheAndQueueDriver || 'memory') {\n    case 'memory':\n      return new LocalQueueDriver(queueDriverOptions);\n    case 'cubestore':\n      if (!queueDriverOptions.cubeStoreDriverFactory) {\n        throw new Error('cubeStoreDriverFactory is a required option for Cube Store queue driver');\n      }\n\n      return new CubeStoreQueueDriver(\n        queueDriverOptions.cubeStoreDriverFactory,\n        queueDriverOptions\n      );\n    default:\n      throw new Error(`Unknown queue driver: ${cacheAndQueueDriver}`);\n  }\n}\n\nexport class QueryQueue {\n  protected concurrency: number;\n\n  protected continueWaitTimeout: number;\n\n  protected executionTimeout: number;\n\n  protected orphanedTimeout: number;\n\n  protected heartBeatInterval: number;\n\n  protected readonly sendProcessMessageFn: SendProcessMessageFn;\n\n  protected readonly sendCancelMessageFn: SendCancelMessageFn;\n","sourceCodeStart":60,"sourceCodeEnd":96,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-query-orchestrator/src/orchestrator/QueryQueue.ts#L60-L96","documentation":"The default branch of factoryQueueDriver's switch: the cacheAndQueueDriver value is neither 'memory' nor 'cubestore', so no queue driver implementation exists for it. This is fail-fast validation of the queue driver name at orchestrator startup. The input at fault is an unknown/unmisspelled cacheAndQueueDriver string.","triggerScenarios":"Thrown at packages/cubejs-query-orchestrator/src/orchestrator/QueryQueue.ts:78 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set cacheAndQueueDriver to 'memory' or 'cubestore' — the only implemented queue drivers","Fix typos in CUBEJS_CACHE_AND_QUEUE_DRIVER or the orchestrator options","Add a new case returning a custom QueueDriverInterface if you extend factoryQueueDriver"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}