Keep workers online during long-running downloads

This commit is contained in:
erik
2026-09-04 14:53:37 -05:00
parent d9e2012e22
commit 632599b201
57 changed files with 8847 additions and 21 deletions
@@ -26,7 +26,9 @@ from infrastructure.database import (
)
from infrastructure.storage_minio import downloads_prefix
HEARTBEAT_OFFLINE_SECONDS = 45
# El worker procesa el navegador de forma bloqueante. Tres minutos toleran una
# caída breve del gateway sin reclamar el mismo job mientras sigue descargando.
HEARTBEAT_OFFLINE_SECONDS = 180
# Un agent recién conectado no recibe jobs reclamados de otros workers.
_FRESH_WORKER_GRACE_SECONDS = 45