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.3 KB
Raw Blame

Bumped the SQLite busy_timeout default from 10 s to 30 s and made it configurable via LDR_DB_CONFIG_BUSY_TIMEOUT_MS (or the legacy LDR_DB_BUSY_TIMEOUT_MS alias). The document scheduler's PDF-download loop can hold a session across multi-second downloads; under the old 10 s default, any short writer landing inside the scheduler's transaction failed with database is locked after ~10 s, even though the commit would have succeeded a few hundred milliseconds later. 30 s gives those short writers enough headroom to land their commit during normal contention. The backup_service honors the same operator-configurable value (it previously hardcoded 10 s, so a backup racing the scheduler could die silently for no operator-tunable reason). Added a small retry_on_db_lock helper (sqlcipher_utils.py) that wraps the token_counter metrics writer (the rate-limit tracker's persistence path is owned by #6566 and already protected by SAVEPOINT isolation) with exponential backoff on transient database is locked errors so a quick blip no longer turns into a permanent Failed to persist ... warning. The helper catches sqlalchemy.exc.OperationalError (the wrapped form SQLAlchemy emits when a session commit hits SQLITE_BUSY) in addition to the unwrapped DBAPI variants.