phpvms/config/queue.php

84 lines
2.5 KiB
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
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: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
*/
'default' => env('QUEUE_DRIVER', 'database'),
2017-06-09 02:28:26 +08: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.
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
2018-08-27 00:40:04 +08:00
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
2017-06-09 02:28:26 +08:00
'retry_after' => 90,
],
'beanstalkd' => [
2018-08-27 00:40:04 +08:00
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
2017-06-09 02:28:26 +08:00
'retry_after' => 90,
],
'sqs' => [
'driver' => 'sqs',
2018-08-27 00:40:04 +08:00
'key' => 'your-public-key',
2017-06-09 02:28:26 +08:00
'secret' => 'your-secret-key',
'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
2018-08-27 00:40:04 +08:00
'queue' => 'your-queue-name',
2017-06-09 02:28:26 +08:00
'region' => 'us-east-1',
],
'redis' => [
2018-08-27 00:40:04 +08:00
'driver' => 'redis',
'connection' => 'default',
'queue' => 'default',
2017-06-09 02:28:26 +08:00
'retry_after' => 90,
],
],
/*
|--------------------------------------------------------------------------
| 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' => [
'database' => env('DB_CONNECTION', 'mysql'),
2018-08-27 00:40:04 +08:00
'table' => 'failed_jobs',
2017-06-09 02:28:26 +08:00
],
];