laravel/config/queue.php

85 lines
2.0 KiB
PHP
Raw Normal View History

<?php
2014-08-24 14:03:58 -05:00
return [
/*
|--------------------------------------------------------------------------
| Default Queue Driver
|--------------------------------------------------------------------------
|
| The Laravel queue API supports a variety of back-ends via an unified
| API, giving you convenient access to each back-end using the same
| syntax for each one. Here you may set the default queue driver.
|
| Supported: "null", "sync", "beanstalkd", "sqs", "iron", "redis"
|
*/
'default' => env('QUEUE_DRIVER') ?: 'sync',
/*
|--------------------------------------------------------------------------
| 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.
|
*/
2014-08-24 14:03:58 -05:00
'connections' => [
2014-08-24 14:03:58 -05:00
'sync' => [
'driver' => 'sync',
2014-08-24 14:03:58 -05:00
],
2014-08-24 14:03:58 -05:00
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
2014-03-03 20:07:43 -06:00
'ttr' => 60,
2014-08-24 14:03:58 -05:00
],
2014-08-24 14:03:58 -05:00
'sqs' => [
2013-02-12 22:23:48 -06:00
'driver' => 'sqs',
'key' => 'your-public-key',
'secret' => 'your-secret-key',
'queue' => 'your-queue-url',
'region' => 'us-east-1',
2014-08-24 14:03:58 -05:00
],
2013-02-12 22:23:48 -06:00
2014-08-24 14:03:58 -05:00
'iron' => [
2013-03-12 08:23:38 -05:00
'driver' => 'iron',
'host' => 'mq-aws-us-east-1.iron.io',
2013-03-12 08:23:38 -05:00
'token' => 'your-token',
'project' => 'your-project-id',
2013-03-12 08:23:38 -05:00
'queue' => 'your-queue-name',
'encrypt' => true,
2014-08-24 14:03:58 -05:00
],
2013-03-12 08:23:38 -05:00
2014-08-24 14:03:58 -05:00
'redis' => [
2013-10-18 07:23:00 +05:30
'driver' => 'redis',
'queue' => 'default',
2014-12-16 16:10:19 -06:00
'expire' => 60,
2014-08-24 14:03:58 -05:00
],
2013-11-26 10:11:29 -06:00
2014-08-24 14:03:58 -05:00
],
2013-11-26 10:11:29 -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.
|
*/
2014-08-24 14:03:58 -05:00
'failed' => [
2013-11-26 10:11:29 -06:00
'database' => 'mysql', 'table' => 'failed_jobs',
2014-08-24 14:03:58 -05:00
],
2013-10-18 07:23:00 +05:30
2014-08-24 14:03:58 -05:00
];