From 3a0dd036f4b67b5a32bb5d9dd77b2efd527f6e00 Mon Sep 17 00:00:00 2001 From: Frederico Castro Date: Mon, 15 Dec 2025 07:20:19 -0300 Subject: [PATCH] fix(frontend): aumentar timeout de polling para 45 minutos --- frontend/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index bc7d09a..b5deae9 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -72,7 +72,7 @@ function App() { setProcessMessage('Processamento do ranking já iniciado. Aguardando...'); } - const MAX_POLLING_TIME = 5 * 60 * 1000; + const MAX_POLLING_TIME = 45 * 60 * 1000; const POLLING_INTERVAL = 4000; const startTime = Date.now(); @@ -91,7 +91,7 @@ function App() { } if (Date.now() - startTime >= MAX_POLLING_TIME) { - throw new Error('Timeout: processamento demorou mais que 5 minutos'); + throw new Error('Timeout: processamento demorou mais que 45 minutos'); } const response = await rankingService.getRanking(page, pageSize);