Files
hermes-agent/persistence
Teknium b6412b81be fix(backup): wait out SQLITE_BUSY_RECOVERY in WAL snapshots
A WAL snapshot failed at once with "database is locked" when it met
another connection rebuilding the WAL index: sqlite3's backup loop
retries only plain SQLITE_BUSY/LOCKED, so the extended
SQLITE_BUSY_RECOVERY (261) ended the copy as an error, and the progress
callback compared the unmasked status, so the 10 s busy deadline never
applied. Mask the status and restart the one-step backup on a busy
error until that same deadline, in both hermes_cli/backup_sqlite.py and
persistence/sqlite/admin/_backup.py. Still fails closed past the
deadline; never copies the main file alone.
2026-11-19 10:36:13 -08:00
..