Skip to content

Commit 14daeac

Browse files
committed
chore: fix
1 parent d14e5c6 commit 14daeac

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/cubejs-cubestore-driver/src/CubeStoreQueueDriver.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ class CubestoreQueueDriverConnection implements QueueDriverConnectionInterface {
174174
toProcess.push(row.id as string);
175175
} else if (row.status === 'active') {
176176
active.push(row.id as string);
177-
// TODO: getQueryStage is broken for Executing query stage...
178-
toProcess.push(row.id as string);
179177
}
180178
}
181179

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,9 @@ export class QueryQueue {
658658
};
659659
}
660660

661-
const index = toProcess.indexOf(this.redisHash(queryInQueue.queryKey));
661+
const index = toProcess
662+
.filter((queryKey) => (priorityFilter != null ? allQueryDefs[queryKey]?.priority === priorityFilter : true))
663+
.indexOf(this.redisHash(queryInQueue.queryKey));
662664
if (index !== -1) {
663665
return index !== -1 ? { stage: `#${index + 1} in queue` } : undefined;
664666
}

0 commit comments

Comments
 (0)