Skip to content

Commit

Permalink
feat: Set CUBEJS_SCHEDULED_REFRESH_TIMER default value to 30 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Dec 14, 2020
1 parent 58a523a commit f69324c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cubejs-server-core/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class CubejsServerCore {
}

if (typeof this.scheduledRefreshTimer === 'boolean' && this.scheduledRefreshTimer) {
this.scheduledRefreshTimer = 5000;
this.scheduledRefreshTimer = 30000;
}

if (
Expand Down
4 changes: 2 additions & 2 deletions packages/cubejs-server-core/core/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ describe('index.test', () => {

expectRefreshTimerOption(10, 10000);
expectRefreshTimerOption('9', 9000);
expectRefreshTimerOption(true, 5000);
expectRefreshTimerOption(true, 30000);
expectRefreshTimerOption(false, false);
expectRefreshTimerOption('false', false);
expectRefreshTimerOption(undefined, 5000);
expectRefreshTimerOption(undefined, 30000);
expectRefreshTimerOption(undefined, false, true);
});

0 comments on commit f69324c

Please sign in to comment.