Skip to content

Commit 3806669

Browse files
authored
refactor(query-queue): Skip generating processingId for Memory & Cube Store (#7358)
1 parent b313184 commit 3806669

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/QueryQueue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ export class QueryQueue {
716716
* of the logic related with the queues updates, heartbeat, etc.
717717
*
718718
* @param {QueryKeyHash} queryKeyHashed
719-
* @param {QueueId | null} queueId Real queue id, only for Cube Store
719+
* @param {QueueId | null} queueId Supported by new Cube Store and Memory
720720
* @return {Promise<{ result: undefined | Object, error: string | undefined }>}
721721
*/
722722
async processQuery(queryKeyHashed, queueId) {
@@ -729,7 +729,7 @@ export class QueryQueue {
729729
let processingLockAcquired;
730730

731731
try {
732-
const processingId = await queueConnection.getNextProcessingId();
732+
const processingId = queueId || /** for Redis only */ await queueConnection.getNextProcessingId();
733733
const retrieveResult = await queueConnection.retrieveForProcessing(queryKeyHashed, processingId);
734734

735735
if (retrieveResult) {

0 commit comments

Comments
 (0)