From f497c89ffa365905ec467e95f4d5bdfb788db93a Mon Sep 17 00:00:00 2001 From: dmolinari Date: Mon, 8 Sep 2025 10:39:55 -0300 Subject: [PATCH] Fix Woker Lote Telegramas 20 --- Elecciones-Web/src/Elecciones.Worker/CriticalDataWorker.cs | 2 +- Elecciones-Web/src/Elecciones.Worker/LowPriorityDataWorker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Elecciones-Web/src/Elecciones.Worker/CriticalDataWorker.cs b/Elecciones-Web/src/Elecciones.Worker/CriticalDataWorker.cs index a5860c1..b79d5cb 100644 --- a/Elecciones-Web/src/Elecciones.Worker/CriticalDataWorker.cs +++ b/Elecciones-Web/src/Elecciones.Worker/CriticalDataWorker.cs @@ -285,7 +285,7 @@ public class CriticalDataWorker : BackgroundService _logger.LogInformation("Se encontraron {count} telegramas nuevos en '{partido}' para '{cat}'. Descargando...", nuevosTelegramasIds.Count, partido.Nombre, categoria.Nombre); int contadorLote = 0; - const int tamanoLote = 100; // Guardaremos de 100 en 100 + const int tamanoLote = 20; // Guardaremos de 100 en 100 foreach (var mesaId in nuevosTelegramasIds) { diff --git a/Elecciones-Web/src/Elecciones.Worker/LowPriorityDataWorker.cs b/Elecciones-Web/src/Elecciones.Worker/LowPriorityDataWorker.cs index aaae425..bc63414 100644 --- a/Elecciones-Web/src/Elecciones.Worker/LowPriorityDataWorker.cs +++ b/Elecciones-Web/src/Elecciones.Worker/LowPriorityDataWorker.cs @@ -763,7 +763,7 @@ public class LowPriorityDataWorker : BackgroundService _logger.LogInformation("Se encontraron {count} telegramas nuevos en '{partido}' para '{cat}'. Descargando...", nuevosTelegramasIds.Count, partido.Nombre, categoria.Nombre); int contadorLote = 0; - const int tamanoLote = 100; // Guardaremos de 100 en 100 + const int tamanoLote = 20; // Guardaremos de 100 en 100 foreach (var mesaId in nuevosTelegramasIds) {