Skip to content

Commit f5817b3

Browse files
committed
ui: increase hot ranges page timeout
This commit increases the hot ranges request timeout to 30 minutes for both the initial fetch and the refresh. Epic: none Release note (bug fix): The timeout duration when loading the Hot Ranges page has been increased to 30 minutes.
1 parent 4122999 commit f5817b3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

pkg/ui/workspaces/db-console/src/redux/apiReducers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ export const hotRangesReducerObj = new PaginatedCachedDataReducer(
126126
api.getHotRanges,
127127
"hotRanges",
128128
hotRangesRequestToID,
129+
1000 /* page limit */,
130+
null /* invalidation period */,
131+
moment.duration(30, "minutes"),
129132
);
130133

131134
export const refreshDatabaseDetails = databaseDetailsReducerObj.refresh;

pkg/ui/workspaces/db-console/src/views/reports/containers/hotranges/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const HotRanges = (props: HotRangesProps) => {
3838
page_size: pageSize,
3939
page_token: pageToken,
4040
});
41-
getHotRanges(request).then(response => {
41+
getHotRanges(request, moment.duration(30, "minutes")).then(response => {
4242
if (response.ranges.length == 0) {
4343
return;
4444
}

0 commit comments

Comments
 (0)