Skip to content

Commit

Permalink
fix: Use experimental flag for pre-aggregations queue events bus, deb…
Browse files Browse the repository at this point in the history
…ug API (#3130)
  • Loading branch information
RusovDmitriy committed Jul 20, 2021
1 parent dab86db commit 4f141d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions packages/cubejs-backend-shared/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,9 @@ const variables: Record<string, (...args: any) => any> = {
livePreview: () => get('CUBEJS_LIVE_PREVIEW')
.default('false')
.asBoolStrict(),
preAggregationsQueueEventsBus: () => get('CUBEJS_PRE_AGGREGATIONS_QUEUE_EVENTS_BUS')
.default('false')
.asBoolStrict(),
externalDefault: () => get('CUBEJS_EXTERNAL_DEFAULT')
.default('false')
.asBoolStrict(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export class QueryOrchestrator {
continueWaitTimeout,
skipExternalCacheAndQueue,
...options.preAggregationsOptions,
getQueueEventsBus: this.getQueueEventsBus.bind(this)
getQueueEventsBus: getEnv('preAggregationsQueueEventsBus') && this.getQueueEventsBus.bind(this)
}
);
}
Expand Down

0 comments on commit 4f141d7

Please sign in to comment.