1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 20:02:35 +01:00
BookStack/app/Config/queue.php

51 lines
1.2 KiB
PHP
Raw Normal View History

2015-07-12 21:01:42 +02:00
<?php
/**
* 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 21:01:42 +02:00
return [
2015-07-12 21:01:42 +02:00
// Default driver to use for the queue
// Options: sync, database, redis
2019-09-07 00:36:16 +02:00
'default' => env('QUEUE_CONNECTION', 'sync'),
2015-07-12 21:01:42 +02:00
// Queue connection configuration
2015-07-12 21:01:42 +02:00
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
2015-07-12 21:01:42 +02:00
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
'after_commit' => false,
2015-07-12 21:01:42 +02:00
],
],
// Failed queue job logging
2015-07-12 21:01:42 +02:00
'failed' => [
'driver' => 'database-uuids',
'database' => 'mysql',
'table' => 'failed_jobs',
2015-07-12 21:01:42 +02:00
],
];