Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

1.1 KB
Raw Blame

The document scheduler no longer holds a database session across its PDF download/extract loop. The pre-fix code kept one session open for the whole pass, and on this codebase's pysqlite configuration (isolation_level="") that pinned two distinct lock-pain paths while multi-second downloads ran:

  • Staged or uncommitted writes from the read session spanned the network IO, so a competing writer (the rate-limit tracker, the research queue, the UI) hit database is locked after the configured busy_timeout (2s by default).
  • Any explicit read transaction held a SHARED lock on the WAL until commit/rollback, so PRAGMA wal_checkpoint(TRUNCATE) from a competing connection blocked for the whole pass.

Both surfaced as cascading database is locked and Failed to persist rate limit estimate warnings. The scheduler now uses three short scopes: a read session that loads the research and resource lists and closes before any network IO, a session-free download loop (each DownloadService call opens its own), and a short write session for the final last_run update. This removes the root cause rather than only widening the timeout.