openalex cooldown

This commit is contained in:
Justin Visser 2026-03-02 18:01:42 +01:00
parent 4c82fe4b8e
commit a490e14126
3 changed files with 21 additions and 1 deletions

View file

@ -289,6 +289,10 @@ class SchedulerService:
async def _drain_pdf_queue(self) -> None:
from app.services.publications.pdf_queue import drain_ready_jobs
from app.services.publications.pdf_queue_resolution import is_budget_cooldown_active
if is_budget_cooldown_active():
return
session_factory = get_session_factory()
async with session_factory() as session: