winter/config/queue.php

88 lines
2.5 KiB
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php
2015-02-07 19:42:40 +11:00
return [
2014-05-14 23:24:20 +10:00
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
2014-05-14 23:24:20 +10:00
|--------------------------------------------------------------------------
|
| The Winter CMS queue API supports an assortment of back-ends via a single
2014-05-14 23:24:20 +10:00
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
2014-05-14 23:24:20 +10:00
|
*/
2015-02-07 19:42:40 +11:00
'default' => 'sync',
2014-05-14 23:24:20 +10: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"
|
2014-05-14 23:24:20 +10:00
*/
2015-02-07 19:42:40 +11:00
'connections' => [
2014-05-14 23:24:20 +10:00
2015-02-07 19:42:40 +11:00
'sync' => [
2014-05-14 23:24:20 +10:00
'driver' => 'sync',
2015-02-07 19:42:40 +11:00
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10:00
2015-02-07 19:42:40 +11:00
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
'block_for' => 0,
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10:00
2015-02-07 19:42:40 +11:00
'sqs' => [
2014-05-14 23:24:20 +10:00
'driver' => 'sqs',
'key' => '',
'secret' => '',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
'queue' => 'your-queue-name',
2014-05-14 23:24:20 +10:00
'region' => 'us-east-1',
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10:00
2015-02-07 19:42:40 +11:00
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
'retry_after' => 90,
'block_for' => null,
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10:00
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10: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.
|
*/
2015-02-07 19:42:40 +11:00
'failed' => [
'database' => 'mysql',
'table' => 'failed_jobs',
2015-02-07 19:42:40 +11:00
],
2014-05-14 23:24:20 +10:00
];