queue.php
1 <?php 2 3 return [ 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", "null" 28 | 29 */ 30 31 'connections' => [ 32 33 'sync' => [ 34 'driver' => 'sync', 35 ], 36 37 'database' => [ 38 'driver' => 'database', 39 'connection' => env('DB_QUEUE_CONNECTION'), 40 'table' => env('DB_QUEUE_TABLE', 'jobs'), 41 'queue' => env('DB_QUEUE', 'default'), 42 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), 43 'after_commit' => false, 44 ], 45 46 'beanstalkd' => [ 47 'driver' => 'beanstalkd', 48 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), 49 'queue' => env('BEANSTALKD_QUEUE', 'default'), 50 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), 51 'block_for' => 0, 52 'after_commit' => false, 53 ], 54 55 'sqs' => [ 56 'driver' => 'sqs', 57 'key' => env('AWS_ACCESS_KEY_ID'), 58 'secret' => env('AWS_SECRET_ACCESS_KEY'), 59 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 60 'queue' => env('SQS_QUEUE', 'default'), 61 'suffix' => env('SQS_SUFFIX'), 62 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 63 'after_commit' => false, 64 ], 65 66 'redis' => [ 67 'driver' => 'redis', 68 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 69 'queue' => env('REDIS_QUEUE', 'default'), 70 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), 71 'block_for' => null, 72 'after_commit' => false, 73 ], 74 75 ], 76 77 /* 78 |-------------------------------------------------------------------------- 79 | Job Batching 80 |-------------------------------------------------------------------------- 81 | 82 | The following options configure the database and table that store job 83 | batching information. These options can be updated to any database 84 | connection and table which has been defined by your application. 85 | 86 */ 87 88 'batching' => [ 89 'database' => env('DB_CONNECTION', 'sqlite'), 90 'table' => 'job_batches', 91 ], 92 93 /* 94 |-------------------------------------------------------------------------- 95 | Failed Queue Jobs 96 |-------------------------------------------------------------------------- 97 | 98 | These options configure the behavior of failed queue job logging so you 99 | can control how and where failed jobs are stored. Laravel ships with 100 | support for storing failed jobs in a simple file or in a database. 101 | 102 | Supported drivers: "database-uuids", "dynamodb", "file", "null" 103 | 104 */ 105 106 'failed' => [ 107 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 108 'database' => env('DB_CONNECTION', 'sqlite'), 109 'table' => 'failed_jobs', 110 ], 111 112 ];