Use file session/cache to avoid SQLite lock failures under queue load.

Database sessions and cache competed with the queue worker on one SQLite file, causing "database is locked" when claiming jobs.
This commit is contained in:
ben
2026-08-12 22:32:56 +02:00
parent f65c816464
commit 4898d5cfde
3 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ return [
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => 5000,
// Wait longer under concurrent writers (queue + web on one SQLite file).
'busy_timeout' => (int) env('DB_BUSY_TIMEOUT', 30000),
'journal_mode' => 'WAL',
'synchronous' => 'NORMAL',
'transaction_mode' => 'DEFERRED',