From c00d4fe157662db513dab8bfa3128e6b5ece11be Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Sat, 28 Mar 2026 16:21:34 +0200 Subject: [PATCH] =?UTF-8?q?fix(monitor):=20increase=20rebuild=20timeout=20?= =?UTF-8?q?to=2030min=20+=20fix=20sample=20tile=20z14=E2=86=92z17?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- src/app/(modules)/monitor/page.tsx | 6 +++--- src/app/api/geoportal/monitor/route.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/(modules)/monitor/page.tsx b/src/app/(modules)/monitor/page.tsx index 7fe723c..ea7f43f 100644 --- a/src/app/(modules)/monitor/page.tsx +++ b/src/app/(modules)/monitor/page.tsx @@ -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(""); diff --git a/src/app/api/geoportal/monitor/route.ts b/src/app/api/geoportal/monitor/route.ts index 97132b6..9d40dec 100644 --- a/src/app/api/geoportal/monitor/route.ts +++ b/src/app/api/geoportal/monitor/route.ts @@ -51,7 +51,7 @@ async function fetchWithTimeout(url: string, timeoutMs = 5000): Promise