No Description

queue.php 2.6KB

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