queue.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Queue Driver
  6. |--------------------------------------------------------------------------
  7. |
  8. | The Laravel queue API supports a variety of back-ends via an unified
  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: "null", "sync", "database", "beanstalkd",
  13. | "sqs", "iron", "redis"
  14. |
  15. */
  16. 'default' => env('QUEUE_DRIVER', 'sync'),
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Queue Connections
  20. |--------------------------------------------------------------------------
  21. |
  22. | Here you may configure the connection information for each server that
  23. | is used by your application. A default configuration has been added
  24. | for each back-end shipped with Laravel. You are free to add more.
  25. |
  26. */
  27. 'connections' => [
  28. 'sync' => [
  29. 'driver' => 'sync',
  30. ],
  31. 'database' => [
  32. 'driver' => 'database',
  33. 'table' => 'jobs',
  34. 'queue' => 'default',
  35. 'expire' => 60,
  36. ],
  37. 'beanstalkd' => [
  38. 'driver' => 'beanstalkd',
  39. 'host' => 'localhost',
  40. 'queue' => 'default',
  41. 'ttr' => 60,
  42. ],
  43. 'sqs' => [
  44. 'driver' => 'sqs',
  45. 'key' => 'your-public-key',
  46. 'secret' => 'your-secret-key',
  47. 'prefix' => 'https://sqs.us-east-1.amazonaws.com/your-account-id',
  48. 'queue' => 'your-queue-name',
  49. 'region' => 'us-east-1',
  50. ],
  51. 'iron' => [
  52. 'driver' => 'iron',
  53. 'host' => 'mq-aws-us-east-1.iron.io',
  54. 'token' => 'your-token',
  55. 'project' => 'your-project-id',
  56. 'queue' => 'your-queue-name',
  57. 'encrypt' => true,
  58. ],
  59. 'redis' => [
  60. 'driver' => 'redis',
  61. 'connection' => 'default',
  62. 'queue' => 'default',
  63. 'expire' => 60,
  64. ],
  65. ],
  66. /*
  67. |--------------------------------------------------------------------------
  68. | Failed Queue Jobs
  69. |--------------------------------------------------------------------------
  70. |
  71. | These options configure the behavior of failed queue job logging so you
  72. | can control which database and table are used to store the jobs that
  73. | have failed. You may change them to any database / table you wish.
  74. |
  75. */
  76. 'failed' => [
  77. 'database' => env('DB_CONNECTION', 'mysql'),
  78. 'table' => 'failed_jobs',
  79. ],
  80. ];