queue.php 2.54 KB
Newer Older
Dominik Hebeler's avatar
Dominik Hebeler committed
1
2
3
4
<?php
return [
    /*
    |--------------------------------------------------------------------------
Dominik Hebeler's avatar
Dominik Hebeler committed
5
    | Default Queue Connection Name
Dominik Hebeler's avatar
Dominik Hebeler committed
6
7
    |--------------------------------------------------------------------------
    |
Dominik Hebeler's avatar
Dominik Hebeler committed
8
    | Laravel's queue API supports an assortment of back-ends via a single
Dominik Hebeler's avatar
Dominik Hebeler committed
9
    | API, giving you convenient access to each back-end using the same
Dominik Hebeler's avatar
Dominik Hebeler committed
10
    | syntax for every one. Here you may define a default connection.
Dominik Hebeler's avatar
Dominik Hebeler committed
11
    |
12
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
13
    'default' => env('QUEUE_CONNECTION', 'sync'),
Dominik Hebeler's avatar
Dominik Hebeler committed
14
15
16
17
18
19
20
21
22
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
Dominik Hebeler's avatar
Dominik Hebeler committed
23
24
    | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
    |
25
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
26
27
28
29
30
31
32
33
    'connections' => [
        'sync' => [
            'driver' => 'sync',
        ],
        'database' => [
            'driver' => 'database',
            'table' => 'jobs',
            'queue' => 'default',
34
            'retry_after' => 90,
Dominik Hebeler's avatar
Dominik Hebeler committed
35
36
37
38
39
        ],
        'beanstalkd' => [
            'driver' => 'beanstalkd',
            'host' => 'localhost',
            'queue' => 'default',
Dominik Hebeler's avatar
Dominik Hebeler committed
40
            'retry_after' => 90,
Dominik Hebeler's avatar
Dominik Hebeler committed
41
42
43
        ],
        'sqs' => [
            'driver' => 'sqs',
Dominik Hebeler's avatar
Dominik Hebeler committed
44
45
46
47
48
            'key' => env('SQS_KEY', 'your-public-key'),
            'secret' => env('SQS_SECRET', 'your-secret-key'),
            'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
            'queue' => env('SQS_QUEUE', 'your-queue-name'),
            'region' => env('SQS_REGION', 'us-east-1'),
Dominik Hebeler's avatar
Dominik Hebeler committed
49
50
51
52
        ],
        'redis' => [
            'driver' => 'redis',
            'connection' => 'default',
Dominik Hebeler's avatar
Dominik Hebeler committed
53
            'queue' => env('REDIS_QUEUE', 'default'),
54
            'retry_after' => 310,
Dominik Hebeler's avatar
Dominik Hebeler committed
55
            'block_for' => null,
Dominik Hebeler's avatar
Dominik Hebeler committed
56
57
58
59
60
61
62
63
64
65
66
        ],
    ],
    /*
    |--------------------------------------------------------------------------
    | 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.
    |
67
     */
Dominik Hebeler's avatar
Dominik Hebeler committed
68
    'failed' => [
69
        'database' => 'mysql',
Dominik Hebeler's avatar
Dominik Hebeler committed
70
71
        'table' => 'failed_jobs',
    ],
72
];