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