scholarr/app/db
Justin Visser f50b609a36 fix(db,frontend): reserve DB connections for API and reduce frontend polling
Background tasks (ingestion, PDF resolution, scheduler) now acquire an
asyncio.Semaphore before checking out a DB connection, guaranteeing at
least N connections remain available for API request handlers. Removes
duplicate polling loop from PublicationsPage, debounces publication
reload on run-status changes, and increases poll interval from 5s to 15s
since SSE handles live discovery.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-02 19:09:06 +01:00
..
__init__.py First product 2026-02-17 14:51:25 +01:00
background_session.py fix(db,frontend): reserve DB connections for API and reduce frontend polling 2026-03-02 19:09:06 +01:00
base.py ci: add ruff linting and mypy type checking 2026-02-26 22:11:41 +01:00
models.py ci: add ruff linting and mypy type checking 2026-02-26 22:11:41 +01:00
session.py after audit 2026-03-01 18:14:22 +01:00