2015-08-30 13:22:00 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2021-02-14 03:39:22 +01:00
|
|
|
| Default Queue Connection Name
|
2015-08-30 13:22:00 +02:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2021-02-14 03:39:22 +01:00
|
|
|
| Laravel's queue API supports an assortment of back-ends via a single
|
2015-08-30 13:22:00 +02:00
|
|
|
| API, giving you convenient access to each back-end using the same
|
2021-02-14 03:39:22 +01:00
|
|
|
| syntax for every one. Here you may define a default connection.
|
2015-08-30 13:22:00 +02:00
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2021-02-14 05:23:11 +01:00
|
|
|
'default' => env('QUEUE_CONNECTION', 'sync'),
|
2015-08-30 13:22:00 +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.
|
|
|
|
|
|
2021-02-14 03:39:22 +01:00
|
|
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
|
|
|
|
|
2015-08-30 13:22:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
'connections' => [
|
|
|
|
|
|
|
|
'sync' => [
|
|
|
|
'driver' => 'sync',
|
|
|
|
],
|
|
|
|
|
2021-02-14 03:39:22 +01:00
|
|
|
'database' => [
|
|
|
|
'driver' => 'database',
|
|
|
|
'table' => 'jobs',
|
|
|
|
'queue' => 'default',
|
|
|
|
'retry_after' => 90,
|
2021-03-31 19:12:48 +02:00
|
|
|
'after_commit' => false,
|
2021-02-14 03:39:22 +01:00
|
|
|
],
|
|
|
|
|
2015-08-30 13:22:00 +02:00
|
|
|
'beanstalkd' => [
|
|
|
|
'driver' => 'beanstalkd',
|
2021-02-14 03:39:22 +01:00
|
|
|
'host' => 'localhost',
|
|
|
|
'queue' => 'default',
|
|
|
|
'retry_after' => 90,
|
2021-02-14 19:01:24 +01:00
|
|
|
'block_for' => 0,
|
2021-03-31 19:12:48 +02:00
|
|
|
'after_commit' => false,
|
2021-02-14 03:39:22 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'sqs' => [
|
|
|
|
'driver' => 'sqs',
|
2021-02-14 19:01:24 +01:00
|
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
|
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
2021-02-14 03:39:22 +01:00
|
|
|
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
2021-03-31 19:12:48 +02:00
|
|
|
'queue' => env('SQS_QUEUE', 'default'),
|
2021-02-14 19:57:25 +01:00
|
|
|
'suffix' => env('SQS_SUFFIX'),
|
2021-02-14 19:01:24 +01:00
|
|
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
2021-03-31 19:12:48 +02:00
|
|
|
'after_commit' => false,
|
2021-02-14 03:39:22 +01:00
|
|
|
],
|
|
|
|
|
|
|
|
'redis' => [
|
|
|
|
'driver' => 'redis',
|
|
|
|
'connection' => 'default',
|
2021-02-14 05:23:11 +01:00
|
|
|
'queue' => env('REDIS_QUEUE', 'default'),
|
2021-02-14 03:39:22 +01:00
|
|
|
'retry_after' => 90,
|
|
|
|
'block_for' => null,
|
2021-03-31 19:12:48 +02:00
|
|
|
'after_commit' => false,
|
2015-08-30 13:22:00 +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' => [
|
2021-02-14 20:11:18 +01:00
|
|
|
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
|
2021-02-14 05:23:11 +01:00
|
|
|
'database' => env('DB_CONNECTION', 'mysql'),
|
2021-02-14 03:39:22 +01:00
|
|
|
'table' => 'failed_jobs',
|
2015-08-30 13:22:00 +02:00
|
|
|
],
|
|
|
|
|
|
|
|
];
|