openalex cooldown
This commit is contained in:
parent
4c82fe4b8e
commit
a490e14126
3 changed files with 21 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue