queue.php 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Default Queue Connection Name
  6. |--------------------------------------------------------------------------
  7. |
  8. | Laravel's queue API supports an assortment of back-ends via a single
  9. | API, giving you convenient access to each back-end using the same
  10. | syntax for every one. Here you may define a default connection.
  11. |
  12. */
  13. 'default' => env('QUEUE_DRIVER', 'sync'),
  14. /*
  15. |--------------------------------------------------------------------------
  16. | Queue Connections
  17. |--------------------------------------------------------------------------
  18. |
  19. | Here you may configure the connection information for each server that
  20. | is used by your application. A default configuration has been added
  21. | for each back-end shipped with Laravel. You are free to add more.
  22. |
  23. | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null"
  24. |
  25. */
  26. 'connections' => [
  27. 'sync' => [
  28. 'driver' => 'sync',
  29. ],
  30. 'database' => [
  31. 'driver' => 'database',
  32. 'table' => 'jobs',
  33. 'queue' => 'default',
  34. 'retry_after' => 90,
  35. ],
  36. 'database_zbs' => [
  37. 'driver' => 'database',
  38. 'table' => 'jobs',
  39. 'queue' => 'default',
  40. 'retry_after' => 90,
  41. 'connection'=>'mysql_z'
  42. ],
  43. 'beanstalkd' => [
  44. 'driver' => 'beanstalkd',
  45. 'host' => 'localhost',
  46. 'queue' => 'default',
  47. 'retry_after' => 90,
  48. ],
  49. 'sqs' => [
  50. 'driver' => 'sqs',
  51. 'key' => env('SQS_KEY', 'your-public-key'),
  52. 'secret' => env('SQS_SECRET', 'your-secret-key'),
  53. 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
  54. 'queue' => env('SQS_QUEUE', 'your-queue-name'),
  55. 'region' => env('SQS_REGION', 'us-east-1'),
  56. ],
  57. 'redis' => [
  58. 'driver' => 'redis',
  59. 'connection' => 'default',
  60. 'queue' => 'default',
  61. 'retry_after' => 90,
  62. 'block_for' => null,
  63. ],
  64. ],
  65. /*
  66. |--------------------------------------------------------------------------
  67. | Failed Queue Jobs
  68. |--------------------------------------------------------------------------
  69. |
  70. | These options configure the behavior of failed queue job logging so you
  71. | can control which database and table are used to store the jobs that
  72. | have failed. You may change them to any database / table you wish.
  73. |
  74. */
  75. 'failed' => [
  76. 'database' => env('DB_CONNECTION', 'mysql'),
  77. 'table' => 'failed_online_test',
  78. ],
  79. ];