queue.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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", "beanstalkd", "sqs", "iron", "redis"
  13. |
  14. */
  15. 'default' => getenv('QUEUE_DRIVER') ?: 'sync',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Queue Connections
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may configure the connection information for each server that
  22. | is used by your application. A default configuration has been added
  23. | for each back-end shipped with Laravel. You are free to add more.
  24. |
  25. */
  26. 'connections' => [
  27. 'sync' => [
  28. 'driver' => 'sync',
  29. ],
  30. 'beanstalkd' => [
  31. 'driver' => 'beanstalkd',
  32. 'host' => 'localhost',
  33. 'queue' => 'default',
  34. 'ttr' => 60,
  35. ],
  36. 'sqs' => [
  37. 'driver' => 'sqs',
  38. 'key' => 'your-public-key',
  39. 'secret' => 'your-secret-key',
  40. 'queue' => 'your-queue-url',
  41. 'region' => 'us-east-1',
  42. ],
  43. 'iron' => [
  44. 'driver' => 'iron',
  45. 'host' => 'mq-aws-us-east-1.iron.io',
  46. 'token' => 'your-token',
  47. 'project' => 'your-project-id',
  48. 'queue' => 'your-queue-name',
  49. 'encrypt' => true,
  50. ],
  51. 'redis' => [
  52. 'driver' => 'redis',
  53. 'queue' => 'default',
  54. ],
  55. ],
  56. /*
  57. |--------------------------------------------------------------------------
  58. | Failed Queue Jobs
  59. |--------------------------------------------------------------------------
  60. |
  61. | These options configure the behavior of failed queue job logging so you
  62. | can control which database and table are used to store the jobs that
  63. | have failed. You may change them to any database / table you wish.
  64. |
  65. */
  66. 'failed' => [
  67. 'database' => 'mysql', 'table' => 'failed_jobs',
  68. ],
  69. ];