fix(container): extend disk usage stats timeout (#13695)

This commit is contained in:
ssongliu
2026-09-03 15:31:12 +08:00
committed by GitHub
parent c09833cbde
commit 6fb389b2ed
3 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -82,10 +82,11 @@ export const cleanContainerLog = (containerName: string, operateNode?: string) =
return http.post(`/containers/clean/log${params}`, { name: containerName }, TimeoutEnum.T_60S);
};
export const containerItemStats = (containerID: string, currentNode?: string) => {
const timeout = containerID === 'system' ? TimeoutEnum.T_5M : TimeoutEnum.T_60S;
return http.post<Container.ContainerItemStats>(
`/containers/item/stats`,
{ name: containerID },
TimeoutEnum.T_60S,
timeout,
currentNode ? { CurrentNode: currentNode } : undefined,
);
};