SQLite Forum

How to circumvent "apsw.BusyError: BusyError: database is locked"?
Login
The WAL setting is persistent (stored in the database), so you really only need to set it once when you create the database.  However, changing the journal_mode to WAL when it is already WAL is not harmful.