queue.php 893 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use think\facade\Env;
  3. return [
  4. 'default' => 'redis',
  5. 'connections' => [
  6. 'sync' => [
  7. 'type' => 'sync',
  8. ],
  9. 'database' => [
  10. 'type' => 'database',
  11. 'queue' => 'default',
  12. 'table' => 'jobs',
  13. ],
  14. 'redis' => [
  15. 'type' => 'redis',
  16. 'queue' => Env::get('queue.listen_name', 'CRMEB_PRO'),
  17. 'batch_queue' => Env::get('queue.batch_listen_name', 'CRMEB_PRO_BATCH'),
  18. 'host' => Env::get('redis.redis_hostname', '127.0.0.1'),
  19. 'port' => Env::get('redis.port', 6379),
  20. 'password' => Env::get('redis.redis_password', ''),
  21. 'select' => Env::get('redis.select', 0),
  22. 'timeout' => 0,
  23. 'persistent' => true,
  24. ],
  25. ],
  26. 'failed' => [
  27. 'type' => 'none',
  28. 'table' => 'failed_jobs',
  29. ],
  30. ];