2015-07-12 15:01:42 -04:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
/**
|
|
|
|
* Queue configuration options.
|
|
|
|
*
|
|
|
|
* Changes to these config files are not supported by BookStack and may break upon updates.
|
|
|
|
* Configuration should be altered via the `.env` file or environment variables.
|
|
|
|
* Do not edit this file unless you're happy to maintain any changes yourself.
|
|
|
|
*/
|
2015-07-12 15:01:42 -04:00
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
return [
|
2015-07-12 15:01:42 -04:00
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// Default driver to use for the queue
|
2021-12-13 13:34:18 -05:00
|
|
|
// Options: sync, database, redis
|
2019-09-06 18:36:16 -04:00
|
|
|
'default' => env('QUEUE_CONNECTION', 'sync'),
|
2015-07-12 15:01:42 -04:00
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// Queue connection configuration
|
2015-07-12 15:01:42 -04:00
|
|
|
'connections' => [
|
|
|
|
|
|
|
|
'sync' => [
|
|
|
|
'driver' => 'sync',
|
|
|
|
],
|
|
|
|
|
|
|
|
'database' => [
|
2021-10-30 16:29:59 -04:00
|
|
|
'driver' => 'database',
|
|
|
|
'table' => 'jobs',
|
|
|
|
'queue' => 'default',
|
|
|
|
'retry_after' => 90,
|
|
|
|
'after_commit' => false,
|
2015-07-12 15:01:42 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
'redis' => [
|
2021-10-30 16:29:59 -04:00
|
|
|
'driver' => 'redis',
|
|
|
|
'connection' => 'default',
|
|
|
|
'queue' => env('REDIS_QUEUE', 'default'),
|
|
|
|
'retry_after' => 90,
|
|
|
|
'block_for' => null,
|
|
|
|
'after_commit' => false,
|
2015-07-12 15:01:42 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
],
|
|
|
|
|
2024-03-16 11:12:14 -04:00
|
|
|
// Job batching
|
|
|
|
'batching' => [
|
|
|
|
'database' => 'mysql',
|
|
|
|
'table' => 'job_batches',
|
|
|
|
],
|
|
|
|
|
2018-12-23 11:26:39 -05:00
|
|
|
// Failed queue job logging
|
2015-07-12 15:01:42 -04:00
|
|
|
'failed' => [
|
2021-10-30 16:29:59 -04:00
|
|
|
'driver' => 'database-uuids',
|
|
|
|
'database' => 'mysql',
|
|
|
|
'table' => 'failed_jobs',
|
2015-07-12 15:01:42 -04:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|