Pony.fm/config/queue.php

90 lines
2.7 KiB
PHP
Raw Normal View History

2015-08-30 13:22:00 +02:00
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
2015-08-30 13:22:00 +02:00
|--------------------------------------------------------------------------
|
| Laravel's queue API supports an assortment of back-ends via a single
2015-08-30 13:22:00 +02:00
| API, giving you convenient access to each back-end using the same
| syntax for every one. Here you may define a default connection.
2015-08-30 13:22:00 +02:00
|
*/
2021-02-14 05:23:11 +01:00
'default' => env('QUEUE_CONNECTION', 'sync'),
2015-08-30 13:22:00 +02: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"
|
2015-08-30 13:22:00 +02:00
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'table' => 'jobs',
'queue' => 'default',
'retry_after' => 90,
],
2015-08-30 13:22:00 +02:00
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => 'localhost',
'queue' => 'default',
'retry_after' => 90,
2021-02-14 19:01:24 +01:00
'block_for' => 0,
],
'sqs' => [
'driver' => 'sqs',
2021-02-14 19:01:24 +01:00
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'your-queue-name'),
2021-02-14 19:57:25 +01:00
'suffix' => env('SQS_SUFFIX'),
2021-02-14 19:01:24 +01:00
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'redis' => [
'driver' => 'redis',
'connection' => 'default',
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => 90,
'block_for' => null,
2015-08-30 13:22:00 +02: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.
|
*/
'failed' => [
2021-02-14 19:21:31 +01:00
'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
'database' => env('DB_CONNECTION', 'mysql'),
'table' => 'failed_jobs',
2015-08-30 13:22:00 +02:00
],
];