mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
The queue-bus consumers, job system and metrics collector share one SQLite file with request handling, and the default journal mode lets any writer lock the whole file — the sporadic 'database is locked' errors in the notification/job consumers. Connections now open with journal_mode=WAL (readers and a writer coexist), busy_timeout=30s and synchronous=NORMAL. Skipped under TESTING, where conftest owns connection pragmas.