this repo has no description
at master 4.1 kB view raw
1<?php 2 3return [ 4 5 /* 6 |-------------------------------------------------------------------------- 7 | Default Queue Connection Name 8 |-------------------------------------------------------------------------- 9 | 10 | Laravel's queue supports a variety of backends via a single, unified 11 | API, giving you convenient access to each backend using identical 12 | syntax for each. The default queue connection is defined below. 13 | 14 */ 15 16 'default' => env('QUEUE_CONNECTION', 'database'), 17 18 /* 19 |-------------------------------------------------------------------------- 20 | Queue Connections 21 |-------------------------------------------------------------------------- 22 | 23 | Here you may configure the connection options for every queue backend 24 | used by your application. An example configuration is provided for 25 | each backend supported by Laravel. You're also free to add more. 26 | 27 | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", 28 | "deferred", "failover", "null" 29 | 30 */ 31 32 'connections' => [ 33 34 'sync' => [ 35 'driver' => 'sync', 36 ], 37 38 'database' => [ 39 'driver' => 'database', 40 'connection' => env('DB_QUEUE_CONNECTION'), 41 'table' => env('DB_QUEUE_TABLE', 'jobs'), 42 'queue' => env('DB_QUEUE', 'default'), 43 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 44 'after_commit' => false, 45 ], 46 47 'beanstalkd' => [ 48 'driver' => 'beanstalkd', 49 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 50 'queue' => env('BEANSTALKD_QUEUE', 'default'), 51 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 52 'block_for' => 0, 53 'after_commit' => false, 54 ], 55 56 'sqs' => [ 57 'driver' => 'sqs', 58 'key' => env('AWS_ACCESS_KEY_ID'), 59 'secret' => env('AWS_SECRET_ACCESS_KEY'), 60 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 61 'queue' => env('SQS_QUEUE', 'default'), 62 'suffix' => env('SQS_SUFFIX'), 63 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 64 'after_commit' => false, 65 ], 66 67 'redis' => [ 68 'driver' => 'redis', 69 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 70 'queue' => env('REDIS_QUEUE', 'default'), 71 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 72 'block_for' => null, 73 'after_commit' => false, 74 ], 75 76 'deferred' => [ 77 'driver' => 'deferred', 78 ], 79 80 'failover' => [ 81 'driver' => 'failover', 82 'connections' => [ 83 'database', 84 'deferred', 85 ], 86 ], 87 88 ], 89 90 /* 91 |-------------------------------------------------------------------------- 92 | Job Batching 93 |-------------------------------------------------------------------------- 94 | 95 | The following options configure the database and table that store job 96 | batching information. These options can be updated to any database 97 | connection and table which has been defined by your application. 98 | 99 */ 100 101 'batching' => [ 102 'database' => env('DB_CONNECTION', 'sqlite'), 103 'table' => 'job_batches', 104 ], 105 106 /* 107 |-------------------------------------------------------------------------- 108 | Failed Queue Jobs 109 |-------------------------------------------------------------------------- 110 | 111 | These options configure the behavior of failed queue job logging so you 112 | can control how and where failed jobs are stored. Laravel ships with 113 | support for storing failed jobs in a simple file or in a database. 114 | 115 | Supported drivers: "database-uuids", "dynamodb", "file", "null" 116 | 117 */ 118 119 'failed' => [ 120 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 121 'database' => env('DB_CONNECTION', 'sqlite'), 122 'table' => 'failed_jobs', 123 ], 124 125];