| 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 | ], | = | 50 | ], |
| 50 | 51 | |||
| 51 | 'sqs' => [ | 52 | 'sqs' => [ | |
| 52 | 'driver' => 'sqs', | 53 | 'driver' => 'sqs', | |
| 53 | 'key' => env('SQS_KEY', 'your-public-key'), | <> | 54 | 'key' => env('AWS_ACCESS_KEY_ID'), |
| 54 | 'secret' => env('SQS_SECRET', 'your-secret-key'), | 55 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), | |
| 55 | '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'), |
| 56 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), | 57 | 'queue' => env('SQS_QUEUE', 'your-queue-name'), | |
| 57 | 'region' => env('SQS_REGION', 'us-east-1'), | <> | 58 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), |
| 58 | ], | = | 59 | ], |
| 59 | 60 | |||
| 60 | 'redis' => [ | 61 | 'redis' => [ | |
| 61 | 'driver' => 'redis', | 62 | 'driver' => 'redis', | |
| 62 | 'connection' => 'default', | 63 | 'connection' => 'default', | |
| 63 | 'queue' => env('REDIS_QUEUE', 'default'), | 64 | 'queue' => env('REDIS_QUEUE', 'default'), | |
| 64 | 'retry_after' => 90, | 65 | 'retry_after' => 90, | |
| 65 | 'block_for' => null, | 66 | 'block_for' => null, | |
| 66 | ], | 67 | ], | |
| 67 | 68 | |||
| 68 | ], | 69 | ], | |
| 69 | 70 | |||
| 70 | /* | 71 | /* | |
| 71 | |-------------------------------------------------------------------------- | 72 | |-------------------------------------------------------------------------- | |
| 72 | | Failed Queue Jobs | 73 | | Failed Queue Jobs | |
| 73 | |-------------------------------------------------------------------------- | 74 | |-------------------------------------------------------------------------- | |
| 74 | | | 75 | | | |
| 75 | | These options configure the behavior of failed queue job logging so you | 76 | | These options configure the behavior of failed queue job logging so you | |
| 76 | | can control which database and table are used to store the jobs that | 77 | | can control which database and table are used to store the jobs that | |
| 77 | | have failed. You may change them to any database / table you wish. | 78 | | have failed. You may change them to any database / table you wish. | |
| 78 | | | 79 | | | |
| 79 | */ | 80 | */ | |
| 80 | 81 | |||
| 81 | 'failed' => [ | 82 | 'failed' => [ | |
| 82 | 'database' => env('DB_CONNECTION', 'mysql'), | 83 | 'database' => env('DB_CONNECTION', 'mysql'), | |
| 83 | 'table' => 'failed_jobs', | 84 | 'table' => 'failed_jobs', | |
| 84 | ], | 85 | ], | |
| 85 | 86 | |||
| 86 | ]; | 87 | ]; |