1 |
5d28dbf4
|
Marek Lovčí
|
<?php
|
2 |
|
|
|
3 |
|
|
return [
|
4 |
|
|
|
5 |
|
|
/*
|
6 |
|
|
|--------------------------------------------------------------------------
|
7 |
|
|
| Default Queue Connection Name
|
8 |
|
|
|--------------------------------------------------------------------------
|
9 |
|
|
|
|
10 |
|
|
| Laravel's queue API supports an assortment of back-ends via a single
|
11 |
|
|
| API, giving you convenient access to each back-end using the same
|
12 |
|
|
| syntax for every one. Here you may define a default connection.
|
13 |
|
|
|
|
14 |
|
|
*/
|
15 |
|
|
|
16 |
|
|
'default' => env('QUEUE_CONNECTION', 'sync'),
|
17 |
|
|
|
18 |
|
|
/*
|
19 |
|
|
|--------------------------------------------------------------------------
|
20 |
|
|
| Queue Connections
|
21 |
|
|
|--------------------------------------------------------------------------
|
22 |
|
|
|
|
23 |
|
|
| Here you may configure the connection information for each server that
|
24 |
|
|
| is used by your application. A default configuration has been added
|
25 |
|
|
| for each back-end shipped with Laravel. You are free to add more.
|
26 |
|
|
|
|
27 |
|
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
|
28 |
|
|
|
|
29 |
|
|
*/
|
30 |
|
|
|
31 |
|
|
'connections' => [
|
32 |
|
|
|
33 |
|
|
'sync' => [
|
34 |
|
|
'driver' => 'sync',
|
35 |
|
|
],
|
36 |
|
|
|
37 |
|
|
'database' => [
|
38 |
|
|
'driver' => 'database',
|
39 |
|
|
'table' => 'jobs',
|
40 |
|
|
'queue' => 'default',
|
41 |
|
|
'retry_after' => 90,
|
42 |
|
|
],
|
43 |
|
|
|
44 |
|
|
'beanstalkd' => [
|
45 |
|
|
'driver' => 'beanstalkd',
|
46 |
|
|
'host' => 'localhost',
|
47 |
|
|
'queue' => 'default',
|
48 |
|
|
'retry_after' => 90,
|
49 |
|
|
'block_for' => 0,
|
50 |
|
|
],
|
51 |
|
|
|
52 |
|
|
'sqs' => [
|
53 |
|
|
'driver' => 'sqs',
|
54 |
|
|
'key' => env('AWS_ACCESS_KEY_ID'),
|
55 |
|
|
'secret' => env('AWS_SECRET_ACCESS_KEY'),
|
56 |
|
|
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
|
57 |
|
|
'queue' => env('SQS_QUEUE', 'your-queue-name'),
|
58 |
|
|
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
|
59 |
|
|
],
|
60 |
|
|
|
61 |
|
|
'redis' => [
|
62 |
|
|
'driver' => 'redis',
|
63 |
|
|
'connection' => 'default',
|
64 |
|
|
'queue' => env('REDIS_QUEUE', 'default'),
|
65 |
|
|
'retry_after' => 90,
|
66 |
|
|
'block_for' => null,
|
67 |
|
|
],
|
68 |
|
|
|
69 |
|
|
],
|
70 |
|
|
|
71 |
|
|
/*
|
72 |
|
|
|--------------------------------------------------------------------------
|
73 |
|
|
| Failed Queue Jobs
|
74 |
|
|
|--------------------------------------------------------------------------
|
75 |
|
|
|
|
76 |
|
|
| These options configure the behavior of failed queue job logging so you
|
77 |
|
|
| can control which database and table are used to store the jobs that
|
78 |
|
|
| have failed. You may change them to any database / table you wish.
|
79 |
|
|
|
|
80 |
|
|
*/
|
81 |
|
|
|
82 |
|
|
'failed' => [
|
83 |
|
|
'driver' => env('QUEUE_FAILED_DRIVER', 'database'),
|
84 |
|
|
'database' => env('DB_CONNECTION', 'mysql'),
|
85 |
|
|
'table' => 'failed_jobs',
|
86 |
|
|
],
|
87 |
|
|
|
88 |
|
|
];
|