Skip to content

Commit 025b1b5

Browse files
authored
fix: disable healthcheck for serverless (#2912)
1 parent 7ffc5c4 commit 025b1b5

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ const b = cn('ydb-healthcheck-preview');
1717

1818
interface HealthcheckPreviewProps {
1919
database: string;
20-
active?: boolean;
2120
}
2221

2322
const checkResultToAlertTheme: Record<SelfCheckResult, AlertProps['theme']> = {

src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export function TenantOverview({
208208
</Flex>
209209
</Flex>
210210
<Flex direction="column" gap={4}>
211-
<HealthcheckPreview database={database} />
211+
{!isServerless && <HealthcheckPreview database={database} />}
212212
<QueriesActivityBar database={database} />
213213
<MetricsTabs
214214
poolsCpuStats={poolsStats}

src/containers/Tenant/Healthcheck/useHealthcheck.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
selectLeavesIssues,
44
} from '../../../store/reducers/healthcheckInfo/healthcheckInfo';
55
import type {IssuesTree} from '../../../store/reducers/healthcheckInfo/types';
6+
import {useTenantBaseInfo} from '../../../store/reducers/tenant/tenant';
67
import {SelfCheckResult} from '../../../types/api/healthcheck';
78
import {useTypedSelector} from '../../../utils/hooks';
89

@@ -19,6 +20,7 @@ export const useHealthcheck = (
1920
database: string,
2021
{autorefresh}: {autorefresh?: number} = {},
2122
): HealthcheckParams => {
23+
const {databaseType} = useTenantBaseInfo(database);
2224
const {
2325
currentData: data,
2426
isFetching,
@@ -29,6 +31,7 @@ export const useHealthcheck = (
2931
{database},
3032
{
3133
pollingInterval: autorefresh,
34+
skip: databaseType === 'Serverless',
3235
},
3336
);
3437

0 commit comments

Comments
 (0)