fix(monitor): increase rebuild timeout to 30min + fix sample tile z14→z17

Martin now starts at z17, so z14 sample tile returned 404.
Rebuild timeout increased from 15 to 30 min for z16 builds.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
AI Assistant
2026-03-28 16:21:34 +02:00
parent f5c8cf5fdc
commit c00d4fe157
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -80,15 +80,15 @@ export default function MonitorPage() {
}
} catch { /* continue polling */ }
}, 15_000);
// Timeout after 15 min
// Timeout after 30 min (z16 builds can take 15-25 min)
setTimeout(() => {
if (pollRef.current) {
clearInterval(pollRef.current);
pollRef.current = null;
addLog("error", "Timeout: rebuild nu s-a finalizat in 15 minute");
addLog("error", "Timeout: rebuild nu s-a finalizat in 30 minute");
setActionLoading("");
}
}, 15 * 60_000);
}, 30 * 60_000);
} catch {
addLog("error", "Nu s-a putut trimite webhook-ul");
setActionLoading("");
+1 -1
View File
@@ -51,7 +51,7 @@ async function fetchWithTimeout(url: string, timeoutMs = 5000): Promise<Response
// Sample tile coordinates for cache testing (Romania, z8)
const SAMPLE_TILES = [
{ z: 8, x: 143, y: 91, source: "gis_uats_z8" },
{ z: 14, x: 9205, y: 5965, source: "gis_terenuri" },
{ z: 17, x: 73640, y: 47720, source: "gis_terenuri" },
];
export async function GET() {