queue.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. return array(
  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: "sync", "beanstalkd", "sqs", "iron"
  13. |
  14. */
  15. 'default' => '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' => array(
  27. 'sync' => array(
  28. 'driver' => 'sync',
  29. ),
  30. 'beanstalkd' => array(
  31. 'driver' => 'beanstalkd',
  32. 'host' => 'localhost',
  33. 'queue' => 'default',
  34. ),
  35. 'sqs' => array(
  36. 'driver' => 'sqs',
  37. 'key' => 'your-public-key',
  38. 'secret' => 'your-secret-key',
  39. 'queue' => 'your-queue-url',
  40. 'region' => 'us-east-1',
  41. ),
  42. 'iron' => array(
  43. 'driver' => 'iron',
  44. 'project' => 'your-project-id',
  45. 'token' => 'your-token',
  46. 'queue' => 'your-queue-name',
  47. ),
  48. 'redis' => array(
  49. 'driver' => 'redis',
  50. 'queue' => 'default',
  51. ),
  52. ),
  53. /*
  54. |--------------------------------------------------------------------------
  55. | Failed Queue Jobs
  56. |--------------------------------------------------------------------------
  57. |
  58. | These options configure the behavior of failed queue job logging so you
  59. | can control which database and table are used to store the jobs that
  60. | have failed. You may change them to any database / table you wish.
  61. |
  62. */
  63. 'failed' => array(
  64. 'database' => 'mysql', 'table' => 'failed_jobs',
  65. ),
  66. );