queue.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Queue Driver
  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 each one. Here you may set the default queue driver.
  11. |
  12. | Supported: "sync", "database", "beanstalkd", "sqs", "redis", "null"
  13. |
  14. */
  15. 'default' => env('QUEUE_DRIVER', 'sync'),
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Queue Prefix
  19. |--------------------------------------------------------------------------
  20. |
  21. | If you are running multiple sites on a single server, you may experience
  22. | crosstalk among sites if they use the same name for queue tubes. This
  23. | optional value defines a prefix that will automatically be applied
  24. | to queue tubes as a way to prevent this crosstalk.
  25. |
  26. */
  27. 'prefix' => env('QUEUE_PREFIX', ''),
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Queue Connections
  31. |--------------------------------------------------------------------------
  32. |
  33. | Here you may configure the connection information for each server that
  34. | is used by your application. A default configuration has been added
  35. | for each back-end shipped with Laravel. You are free to add more.
  36. |
  37. */
  38. 'connections' => [
  39. 'sync' => [
  40. 'driver' => 'sync',
  41. ],
  42. 'database' => [
  43. 'driver' => 'database',
  44. 'table' => 'jobs',
  45. 'queue' => 'default',
  46. 'retry_after' => 90,
  47. ],
  48. 'beanstalkd' => [
  49. 'driver' => 'beanstalkd',
  50. 'host' => 'localhost',
  51. 'queue' => 'default',
  52. 'retry_after' => 90,
  53. ],
  54. 'sqs' => [
  55. 'driver' => 'sqs',
  56. 'key' => 'your-public-key',
  57. 'secret' => 'your-secret-key',
  58. 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
  59. 'queue' => 'your-queue-name',
  60. 'region' => 'us-east-1',
  61. ],
  62. 'redis' => [
  63. 'driver' => 'redis',
  64. 'connection' => 'default',
  65. 'queue' => 'default',
  66. 'retry_after' => 90,
  67. ],
  68. ],
  69. /*
  70. |--------------------------------------------------------------------------
  71. | Failed Queue Jobs
  72. |--------------------------------------------------------------------------
  73. |
  74. | These options configure the behavior of failed queue job logging so you
  75. | can control which database and table are used to store the jobs that
  76. | have failed. You may change them to any database / table you wish.
  77. |
  78. */
  79. 'failed' => [
  80. 'database' => env('DB_CONNECTION', 'mysql'),
  81. 'table' => 'failed_jobs',
  82. ],
  83. ];