Skip to content

Commit 17b1221

Browse files
committed
update preAggs to use cache option instead of renewQuery
1 parent 91d9cc3 commit 17b1221

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cubejs-query-orchestrator/src/orchestrator/PreAggregations.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ export class PreAggregations {
498498
maxPartitions: this.options.maxPartitions,
499499
maxSourceRowLimit: this.options.maxSourceRowLimit,
500500
isJob: queryBody.isJob,
501-
waitForRenew: queryBody.renewQuery,
501+
waitForRenew: queryBody.cache === 'must-revalidate',
502502
// TODO workaround to avoid continuous waiting on building pre-aggregation dependencies
503503
forceBuild: i === preAggregations.length - 1 ? queryBody.forceBuildPreAggregations : false,
504504
requestId: queryBody.requestId,
@@ -603,7 +603,7 @@ export class PreAggregations {
603603
{
604604
maxPartitions: this.options.maxPartitions,
605605
maxSourceRowLimit: this.options.maxSourceRowLimit,
606-
waitForRenew: queryBody.renewQuery,
606+
waitForRenew: queryBody.cache === 'must-revalidate',
607607
requestId: queryBody.requestId,
608608
externalRefresh: this.externalRefresh,
609609
compilerCacheFn: queryBody.compilerCacheFn,

0 commit comments

Comments
 (0)