mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-10-17 08:00:42 +00:00
fix(container): extend disk usage stats timeout (#13695)
This commit is contained in:
@@ -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,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user