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:
@@ -80,15 +80,15 @@ export default function MonitorPage() {
|
|||||||
}
|
}
|
||||||
} catch { /* continue polling */ }
|
} catch { /* continue polling */ }
|
||||||
}, 15_000);
|
}, 15_000);
|
||||||
// Timeout after 15 min
|
// Timeout after 30 min (z16 builds can take 15-25 min)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (pollRef.current) {
|
if (pollRef.current) {
|
||||||
clearInterval(pollRef.current);
|
clearInterval(pollRef.current);
|
||||||
pollRef.current = null;
|
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("");
|
setActionLoading("");
|
||||||
}
|
}
|
||||||
}, 15 * 60_000);
|
}, 30 * 60_000);
|
||||||
} catch {
|
} catch {
|
||||||
addLog("error", "Nu s-a putut trimite webhook-ul");
|
addLog("error", "Nu s-a putut trimite webhook-ul");
|
||||||
setActionLoading("");
|
setActionLoading("");
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ async function fetchWithTimeout(url: string, timeoutMs = 5000): Promise<Response
|
|||||||
// Sample tile coordinates for cache testing (Romania, z8)
|
// Sample tile coordinates for cache testing (Romania, z8)
|
||||||
const SAMPLE_TILES = [
|
const SAMPLE_TILES = [
|
||||||
{ z: 8, x: 143, y: 91, source: "gis_uats_z8" },
|
{ 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() {
|
export async function GET() {
|
||||||
|
|||||||
Reference in New Issue
Block a user