async_queue.php 1007 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * This file is part of Hyperf.
  5. *
  6. * @link https://www.hyperf.io
  7. * @document https://hyperf.wiki
  8. * @contact group@hyperf.io
  9. * @license https://github.com/hyperf/hyperf/blob/master/LICENSE
  10. */
  11. use Hyperf\AsyncQueue\Driver\RedisDriver;
  12. return [
  13. 'default' => [
  14. 'driver' => RedisDriver::class,
  15. 'redis' => [
  16. 'pool' => 'default',
  17. ],
  18. 'channel' => '{gatherList}',
  19. 'timeout' => 2,
  20. 'retry_seconds' => 5,
  21. 'handle_timeout' => 10,
  22. 'processes' => 1,
  23. 'concurrent' => [
  24. 'limit' => 10,
  25. ],
  26. 'max_messages' => 0,
  27. ],
  28. 'import' => [
  29. 'driver' => RedisDriver::class,
  30. 'redis' => [
  31. 'pool' => 'default'
  32. ],
  33. 'channel' => '{importList}',
  34. 'timeout' => 2,
  35. 'retry_seconds' => 5,
  36. 'handle_timeout' => 10,
  37. 'processes' => 1,
  38. 'concurrent' => [
  39. 'limit' => 5,
  40. ],
  41. ],
  42. ];