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 {
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
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments