queue.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2020 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. return [
  12. 'default' => 'redis',
  13. 'connections' => [
  14. 'sync' => [
  15. 'type' => 'sync',
  16. ],
  17. 'database' => [
  18. 'type' => 'database',
  19. 'queue' => env('queue_name', 'default'),
  20. 'table' => 'jobs',
  21. ],
  22. 'redis' => [
  23. 'type' => 'redis',
  24. 'queue' => env('queue_name', 'default'),
  25. 'host' => env('redis.redis_hostname','127.0.0.1'),
  26. 'port' => env('redis.port', '6379'),
  27. 'password' => env('redis.redis_password', ''),
  28. 'select' => (int)env('redis.select', 0),
  29. 'timeout' => 0,
  30. 'persistent' => false,
  31. ],
  32. ],
  33. 'failed' => [
  34. 'type' => 'none',
  35. 'table' => 'failed_jobs',
  36. ],
  37. ];