queue.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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 should consider
  22. | specifying a queue prefix. This string will be prepended to the queue
  23. | names to prevent cross-talk when using certain local queue drivers.
  24. |
  25. */
  26. 'prefix' => env('QUEUE_PREFIX', ''),
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Queue Connections
  30. |--------------------------------------------------------------------------
  31. |
  32. | Here you may configure the connection information for each server that
  33. | is used by your application. A default configuration has been added
  34. | for each back-end shipped with Laravel. You are free to add more.
  35. |
  36. */
  37. 'connections' => [
  38. 'sync' => [
  39. 'driver' => 'sync',
  40. ],
  41. 'database' => [
  42. 'driver' => 'database',
  43. 'table' => 'jobs',
  44. 'queue' => 'default',
  45. 'retry_after' => 90,
  46. ],
  47. 'beanstalkd' => [
  48. 'driver' => 'beanstalkd',
  49. 'host' => 'localhost',
  50. 'queue' => 'default',
  51. 'retry_after' => 90,
  52. ],
  53. 'sqs' => [
  54. 'driver' => 'sqs',
  55. 'key' => 'your-public-key',
  56. 'secret' => 'your-secret-key',
  57. 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
  58. 'queue' => 'your-queue-name',
  59. 'region' => 'us-east-1',
  60. ],
  61. 'redis' => [
  62. 'driver' => 'redis',
  63. 'connection' => 'default',
  64. 'queue' => 'default',
  65. 'retry_after' => 90,
  66. ],
  67. ],
  68. /*
  69. |--------------------------------------------------------------------------
  70. | Failed Queue Jobs
  71. |--------------------------------------------------------------------------
  72. |
  73. | These options configure the behavior of failed queue job logging so you
  74. | can control which database and table are used to store the jobs that
  75. | have failed. You may change them to any database / table you wish.
  76. |
  77. */
  78. 'failed' => [
  79. 'database' => env('DB_CONNECTION', 'mysql'),
  80. 'table' => 'failed_jobs',
  81. ],
  82. ];