Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

queue.php 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. 'queue' => 'your-queue-url',
  48. 'region' => 'us-east-1',
  49. ],
  50. 'iron' => [
  51. 'driver' => 'iron',
  52. 'host' => 'mq-aws-us-east-1.iron.io',
  53. 'token' => 'your-token',
  54. 'project' => 'your-project-id',
  55. 'queue' => 'your-queue-name',
  56. 'encrypt' => true,
  57. ],
  58. 'redis' => [
  59. 'driver' => 'redis',
  60. 'queue' => 'default',
  61. 'expire' => 60,
  62. ],
  63. ],
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Failed Queue Jobs
  67. |--------------------------------------------------------------------------
  68. |
  69. | These options configure the behavior of failed queue job logging so you
  70. | can control which database and table are used to store the jobs that
  71. | have failed. You may change them to any database / table you wish.
  72. |
  73. */
  74. 'failed' => [
  75. 'database' => 'mysql', 'table' => 'failed_jobs',
  76. ],
  77. ];