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 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
408325192a
commit
ae90eaf71c
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user