From ae90eaf71ccfb3eb2e455bdc5ee2de12710eaa63 Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Tue, 28 Jul 2026 09:44:26 -0500 Subject: [PATCH] config: increase scheduler ventana from 10 to 60 minutes Doctors can order exams up to ~45 min after the patient is registered at reception. With 10 min window the exam sync missed those cases. 60 min ensures late-ordered exams are always captured and pushed to WhatsApp Lab via upsert. Co-Authored-By: Claude Sonnet 4.6 --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 1f97f2f..60bc099 100644 --- a/main.py +++ b/main.py @@ -66,7 +66,7 @@ async def startup(): contratos_defaults() async def _job_sync(): try: - resultado = await sync_recientes(ventana_min=10) + resultado = await sync_recientes(ventana_min=60) if not resultado.get("ok") and resultado.get("error"): guardar_sync_log( {"total": 0, "created": 0, "skipped": 0, "updated": 0, "errores": 1, "detalle": [