feat(backend): rendimiento ORCID y autosync configurable

Reutiliza cliente HTTP ORCID, reduce consultas DB al sincronizar works y añade SYNC_* en settings y scheduler (cron mensual o intervalo). Actualiza backend/.env, frontend/.env y .env.example para despliegue.
This commit is contained in:
Mireya Cueto Garrido
2026-05-20 12:25:20 +02:00
parent 5e0b5c4289
commit 238742bda4
5 changed files with 114 additions and 50 deletions
+6
View File
@@ -94,6 +94,12 @@ class Settings(BaseSettings):
MAX_PUB_IDS_BATCH: int = 500
MAX_REQUEST_BODY_BYTES: int = 1_048_576 # 1 MiB
SYNC_SCHEDULER_ENABLED: bool = True
SYNC_SCHEDULE_MODE: Literal["monthly_cron", "interval_minutes"] = "monthly_cron"
SYNC_CRON_DAY: int = 1
SYNC_CRON_HOUR: int = 3
SYNC_INTERVAL_MINUTES: int = 60
DOCS_ENABLED: bool = True
SECURITY_HSTS_SECONDS: int = 31_536_000