queue.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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", "sqs", "redis"
  13. |
  14. */
  15. 'default' => env('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. 'database' => [
  31. 'driver' => 'database',
  32. 'table' => 'jobs',
  33. 'queue' => 'default',
  34. 'retry_after' => 60,
  35. ],
  36. 'beanstalkd' => [
  37. 'driver' => 'beanstalkd',
  38. 'host' => 'localhost',
  39. 'queue' => 'default',
  40. 'retry_after' => 60,
  41. ],
  42. 'sqs' => [
  43. 'driver' => 'sqs',
  44. 'key' => 'your-public-key',
  45. 'secret' => 'your-secret-key',
  46. 'queue' => 'your-queue-url',
  47. 'region' => 'us-east-1',
  48. ],
  49. 'redis' => [
  50. 'driver' => 'redis',
  51. 'connection' => env('QUEUE_REDIS_CONNECTION', 'default'),
  52. 'queue' => 'default',
  53. 'retry_after' => 60,
  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' => env('DB_CONNECTION', 'mysql'),
  68. 'table' => env('QUEUE_FAILED_TABLE', 'failed_jobs'),
  69. ],
  70. ];