2013-01-28 11:58:38 -06:00
|
|
|
<?php
|
|
|
|
|
2014-08-24 14:03:58 -05:00
|
|
|
return [
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
2018-03-13 13:37:32 -05:00
|
|
|
| Default Queue Connection Name
|
2015-02-22 20:47:03 -06:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2017-01-21 10:15:05 -06:00
|
|
|
| Laravel's queue API supports an assortment of back-ends via a single
|
2015-02-22 20:47:03 -06:00
|
|
|
| API, giving you convenient access to each back-end using the same
|
2018-03-13 13:37:32 -05:00
|
|
|
| syntax for every one. Here you may define a default connection.
|
2015-02-22 20:47:03 -06:00
|
|
|
|
|
|
|
|
*/
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2018-03-13 13:38:47 -05:00
|
|
|
'default' => env('QUEUE_CONNECTION', 'sync'),
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06: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.
|
|
|
|
|
|
2018-03-13 13:37:32 -05:00
|
|
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
|
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
*/
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'connections' => [
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'sync' => [
|
|
|
|
'driver' => 'sync',
|
|
|
|
],
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'database' => [
|
|
|
|
'driver' => 'database',
|
2016-03-01 08:23:00 -06:00
|
|
|
'table' => 'jobs',
|
|
|
|
'queue' => 'default',
|
2016-07-22 14:53:03 -05:00
|
|
|
'retry_after' => 90,
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2014-12-19 16:00:18 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'beanstalkd' => [
|
|
|
|
'driver' => 'beanstalkd',
|
2016-03-01 08:23:00 -06:00
|
|
|
'host' => 'localhost',
|
|
|
|
'queue' => 'default',
|
2016-07-22 14:53:03 -05:00
|
|
|
'retry_after' => 90,
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2013-01-28 11:58:38 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'sqs' => [
|
|
|
|
'driver' => 'sqs',
|
2017-12-19 12:42:36 +05:30
|
|
|
'key' => env('SQS_KEY', 'your-public-key'),
|
|
|
|
'secret' => env('SQS_SECRET', 'your-secret-key'),
|
|
|
|
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
2017-12-19 08:08:25 -06:00
|
|
|
'queue' => env('SQS_QUEUE', 'your-queue-name'),
|
2017-12-19 12:44:14 +05:30
|
|
|
'region' => env('SQS_REGION', 'us-east-1'),
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2013-02-12 22:23:48 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'redis' => [
|
2016-03-01 08:23:00 -06:00
|
|
|
'driver' => 'redis',
|
2015-02-24 20:07:09 -06:00
|
|
|
'connection' => 'default',
|
2018-10-30 12:36:35 +00:00
|
|
|
'queue' => env('REDIS_QUEUE', 'default'),
|
2016-07-22 14:53:03 -05:00
|
|
|
'retry_after' => 90,
|
2018-01-26 09:05:27 -06:00
|
|
|
'block_for' => null,
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2013-11-26 10:11:29 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2013-11-26 10:11:29 -06:00
|
|
|
|
2015-02-22 20:47:03 -06: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.
|
|
|
|
|
|
|
|
|
*/
|
2013-11-26 10:11:29 -06:00
|
|
|
|
2015-02-22 20:47:03 -06:00
|
|
|
'failed' => [
|
2015-10-30 18:19:00 +00:00
|
|
|
'database' => env('DB_CONNECTION', 'mysql'),
|
2016-03-01 08:23:00 -06:00
|
|
|
'table' => 'failed_jobs',
|
2015-02-22 20:47:03 -06:00
|
|
|
],
|
2013-10-18 07:23:00 +05:30
|
|
|
|
2014-08-24 14:03:58 -05:00
|
|
|
];
|