Skip to content

Commit bf68ece

Browse files
committed
chore: fix
1 parent 7971fe5 commit bf68ece

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/cubejs-base-driver/src/queue-driver.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export interface QueueDriverConnectionInterface {
6666
* @param keyScore Redis specific thing
6767
* @param queryKey
6868
* @param orphanedTime
69-
* @param queryHandler Our queue allow to use different handlers. For example query, cvsQuery, etc.
69+
* @param queryHandler Our queue allows using different handlers. For example, query, cvsQuery, etc.
7070
* @param query
7171
* @param priority
7272
* @param options

packages/cubejs-query-orchestrator/test/unit/QueryQueue.abstract.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ export const QueryQueueTest = (name: string, options: QueryQueueTestOptions) =>
287287

288288
let orphanedTimeout = 2;
289289
await connection.addToQueue(keyScore, ['1', []], time + (orphanedTimeout * 1000), 'delay', { isJob: true, orphanedTimeout: time, }, priority, {
290+
queueId: 1,
290291
stageQueryKey: '1',
291292
requestId: '1',
292293
orphanedTimeout,
@@ -297,6 +298,7 @@ export const QueryQueueTest = (name: string, options: QueryQueueTestOptions) =>
297298
orphanedTimeout = 60;
298299

299300
await connection.addToQueue(keyScore, ['2', []], time + (orphanedTimeout * 1000), 'delay', { isJob: true, orphanedTimeout: time, }, priority, {
301+
queueId: 2,
300302
stageQueryKey: '2',
301303
requestId: '2',
302304
orphanedTimeout,
@@ -307,8 +309,7 @@ export const QueryQueueTest = (name: string, options: QueryQueueTestOptions) =>
307309
expect(await connection.getOrphanedQueries()).toEqual([
308310
[
309311
connection.redisHash(['1', []]),
310-
// Redis doesnt support queueId, it will return Null
311-
name.includes('Redis') ? null : expect.any(Number)
312+
expect.any(Number)
312313
]
313314
]);
314315
} finally {

0 commit comments

Comments
 (0)