laravel/config/queue.php

94 lines
2.8 KiB
PHP
Raw Normal View History

<?php
2014-08-24 14:03:58 -05:00
return [
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
|
*/
2018-03-13 13:38:47 -05:00
'default' => env('QUEUE_CONNECTION', 'sync'),
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
*/
2015-02-22 20:47:03 -06:00
'connections' => [
2015-02-22 20:47:03 -06:00
'sync' => [
'driver' => 'sync',
],
2015-02-22 20:47:03 -06:00
'database' => [
'driver' => 'database',
2016-03-01 08:23:00 -06:00
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
'after_commit' => false,
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',
'retry_after' => 90,
'block_for' => 0,
'after_commit' => false,
2015-02-22 20:47:03 -06:00
],
2015-02-22 20:47:03 -06:00
'sqs' => [
'driver' => 'sqs',
2018-12-18 09:09:55 -06:00
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
2017-12-19 12:42:36 +05:30
'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,
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',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
2018-01-26 09:05:27 -06:00
'block_for' => null,
'after_commit' => false,
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' => [
2020-08-19 09:32:50 -05:00
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
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
];