Skip to content

Commit 2c27710

Browse files
committed
FOUR-29322 Artisan commands fail with SQLite "unable to open database file" when queue batching is not configured
Description: Add queue.batching config so job batching uses app DB connection Without this, Laravel falls back to env('DB_CONNECTION','sqlite'). When DB_CONNECTION is unset, BusServiceProvider requests the 'sqlite' connection and php artisan route:list fails with "unable to open database file". Related tickets: https://processmaker.atlassian.net/browse/FOUR-29322
1 parent c39effc commit 2c27710

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

config/queue.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,22 @@
7373

7474
],
7575

76+
/*
77+
|--------------------------------------------------------------------------
78+
| Job Batching
79+
|--------------------------------------------------------------------------
80+
|
81+
| The following options configure the database and table that store job
82+
| batching information. Uses the same database connection as the app
83+
| so we do not fall back to Laravel's default 'sqlite'.
84+
|
85+
*/
86+
87+
'batching' => [
88+
'database' => env('DB_CONNECTION', 'processmaker'),
89+
'table' => 'job_batches',
90+
],
91+
7692
/*
7793
|--------------------------------------------------------------------------
7894
| Failed Queue Jobs

0 commit comments

Comments
 (0)