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