File tree Expand file tree Collapse file tree 2 files changed +11
-16
lines changed
packages/cubejs-query-orchestrator/src/orchestrator Expand file tree Collapse file tree 2 files changed +11
-16
lines changed Original file line number Diff line number Diff line change @@ -182,21 +182,6 @@ export class QueryCache {
182182 }
183183 }
184184
185- /**
186- * Force reconcile queue logic to be executed.
187- */
188- public async forceReconcile ( datasource = 'default' ) {
189- if ( ! this . externalQueue ) {
190- // We don't need to reconcile external queue, because Cube Store
191- // uses its internal queue which managed separately.
192- return ;
193- }
194- const queue = await this . getQueue ( datasource ) ;
195- if ( queue ) {
196- await queue . reconcileQueue ( ) ;
197- }
198- }
199-
200185 /**
201186 * Generates from the `queryBody` the final `sql` query and push it to
202187 * the queue. Returns promise which will be resolved by the different
Original file line number Diff line number Diff line change @@ -172,7 +172,17 @@ export class QueryOrchestrator {
172172 * Force reconcile queue logic to be executed.
173173 */
174174 public async forceReconcile ( datasource = 'default' ) {
175- await this . queryCache . forceReconcile ( datasource ) ;
175+ // pre-aggregations queue reconcile
176+ const preaggsQueue = await this . preAggregations . getQueue ( datasource ) ;
177+ if ( preaggsQueue ) {
178+ await preaggsQueue . reconcileQueue ( ) ;
179+ }
180+
181+ // queries queue reconcile
182+ const queryQueue = await this . queryCache . getQueue ( datasource ) ;
183+ if ( queryQueue ) {
184+ await queryQueue . reconcileQueue ( ) ;
185+ }
176186 }
177187
178188 /**
You can’t perform that action at this time.
0 commit comments