Increase API timeout to 50s and loading timeout to 60s for large clusters

This commit is contained in:
2025-10-06 09:59:11 -03:00
parent 49779c7053
commit e21c69a503

View File

@@ -1924,18 +1924,18 @@
// Show fullscreen loading modal
loadingModal = showFullscreenLoading(
'Analyzing Cluster Resources',
'Please wait while we analyze your cluster resources and generate insights...'
'Please wait while we analyze your cluster resources and generate insights... This may take up to 60 seconds for large clusters.'
);
// Set timeout for loading (30 seconds)
// Set timeout for loading (60 seconds)
timeoutId = setTimeout(() => {
hideFullscreenLoading();
showError('metrics-grid', 'Request timeout - API is taking too long to respond');
}, 30000);
}, 60000);
// Load cluster status with timeout
const controller = new AbortController();
const timeoutController = setTimeout(() => controller.abort(), 25000);
const timeoutController = setTimeout(() => controller.abort(), 50000);
const clusterResponse = await fetch('/api/v1/cluster/status', {
signal: controller.signal