You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(pipeline): split ingest_batch.py — 8 concerns in 1295 lines, 32 commits in 6 months #781
pipeline/services/ingest_batch.py is the most diseased file in the codebase. 1,295 lines packing 8 distinct concerns: DB connection management, topological sorting, write operations, worker pool dispatch, result processing, FTS trigger lifecycle, raw state updates, and session insight refresh. 32 commits in 6 months (5 fixes, 11 refactors). FTS trigger management has been broken and patched multiple times.
Sync/async divergence in the same file: _process_ingest_batch_sync uses sync sqlite3, refresh_session_insights_bulk uses aiosqlite. Two different DB access patterns.
Activity
refactor(pipeline): split ingest_batch.py into package (#781) (#794)
refactor(pipeline): extract _models.py from ingest_batch _core.py (#781…
refactor: SQL dedup — import from core/common, remove 138 lines of du…
Sinity commentedon May 4, 2026
Resolved by PRs #794 (split into package), #796 (extract _models.py), #798 (SQL dedup, _models.py 233→104 lines).
refactor(pipeline): split ingest_batch.py into package (#781) (#794)
refactor(pipeline): extract _models.py from ingest_batch _core.py (#781…
refactor: SQL dedup — import from core/common, remove 138 lines of du…