1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/config/queue.php

94 lines
2.9 KiB
PHP
Raw Normal View History

2018-10-04 19:10:43 +02:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
|
*/
2021-03-09 11:30:34 +01:00
'default' => env('QUEUE_CONNECTION', 'sync'),
2018-10-04 19:10:43 +02:00
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection information for each server that
| is used by your application. A default configuration has been added
| for each back-end shipped with Laravel. You are free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
2020-11-25 03:59:23 +01:00
'retry_after' => 90000000,
'after_commit' => false,
2018-10-04 19:10:43 +02:00
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
2020-11-25 03:59:23 +01:00
'retry_after' => 90000000,
'block_for' => 0,
'after_commit' => false,
2018-10-04 19:10:43 +02:00
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
2018-10-04 19:10:43 +02:00
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
2018-10-04 19:10:43 +02:00
],
'redis' => [
'driver' => 'redis',
2021-03-29 18:12:24 +02:00
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
2020-11-25 03:59:23 +01:00
'retry_after' => 90000000,
'block_for' => null,
'after_commit' => false,
2018-10-04 19:10:43 +02:00
],
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control which database and table are used to store the jobs that
| have failed. You may change them to any database / table you wish.
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
2018-10-04 19:10:43 +02:00
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
2018-10-04 19:10:43 +02:00
],
];