Refactored ingestion to semaphore-bounded tasks, centralized error handling, and consolidated metrics.
CI / Formatting (push) Successful in 5s
CI / Linting (push) Successful in 5s
CI / Tests (push) Successful in 22s
CI / Type Checking (push) Successful in 11s
CI / Spelling (push) Successful in 5s

This commit is contained in:
2026-03-22 22:45:31 -04:00
parent c1f967ece9
commit 093426ac61
7 changed files with 180 additions and 135 deletions
-11
View File
@@ -46,17 +46,6 @@ class TestParseArgs:
args = _parse_args(["--token", "test", "--database-path", "/custom.db"])
assert args.database_path == "/custom.db"
def test_ingestion_workers_default(self, monkeypatch: pytest.MonkeyPatch) -> None:
"""Omitting --ingestion-workers defaults to 4."""
monkeypatch.delenv("INGESTION_WORKERS", raising=False)
args = _parse_args(["--token", "test"])
assert args.ingestion_workers == 4
def test_ingestion_workers_override(self) -> None:
"""--ingestion-workers overrides the default."""
args = _parse_args(["--token", "test", "--ingestion-workers", "8"])
assert args.ingestion_workers == 8
def test_ingest_only_flag(self) -> None:
"""--ingest-only sets ingest_only to True."""
args = _parse_args(["--token", "test", "--ingest-only"])