File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
cubejs-cubestore-driver/src
cubejs-query-orchestrator/src/orchestrator Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -174,8 +174,6 @@ class CubestoreQueueDriverConnection implements QueueDriverConnectionInterface {
174
174
toProcess . push ( row . id as string ) ;
175
175
} else if ( row . status === 'active' ) {
176
176
active . push ( row . id as string ) ;
177
- // TODO: getQueryStage is broken for Executing query stage...
178
- toProcess . push ( row . id as string ) ;
179
177
}
180
178
}
181
179
Original file line number Diff line number Diff line change @@ -658,7 +658,9 @@ export class QueryQueue {
658
658
} ;
659
659
}
660
660
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 ) ) ;
662
664
if ( index !== - 1 ) {
663
665
return index !== - 1 ? { stage : `#${ index + 1 } in queue` } : undefined ;
664
666
}
You can’t perform that action at this time.
0 commit comments