Retry insight persistence with exponential backoff to avoid SQLite lock contention #108

Merged
cameron merged 1 commits from feature/db-locked-fix into master 2026-08-07 16:19:42 +00:00

1 Commits

Author SHA1 Message Date
Cameron Cordes 38aaddfd2a Retry insight persistence with exponential backoff to avoid SQLite lock contention
Add retry_with_backoff utility (100ms base, ±25% jitter, 3 attempts)
and replace all 11 direct DAO calls in insight_chat.rs and
insight_generator.rs. The Mutex guard drops between retries so the
maintenance connection can release its SQLite write lock.
2026-08-05 18:22:36 -04:00