You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
|
|
* This file is part of Hyperf.
|
|
|
|
*
|
|
|
|
* @link https://www.hyperf.io
|
|
|
|
* @document https://hyperf.wiki
|
|
|
|
* @contact group@hyperf.io
|
|
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
|
|
|
|
*/
|
|
|
|
return [
|
|
|
|
'default' => [
|
|
|
|
'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
|
|
|
|
'redis' => [
|
|
|
|
'pool' => 'default',
|
|
|
|
],
|
|
|
|
'channel' => '{queue}',
|
|
|
|
'timeout' => 2,
|
|
|
|
'retry_seconds' => 5,
|
|
|
|
'handle_timeout' => 10,
|
|
|
|
'processes' => 1,
|
|
|
|
'concurrent' => [
|
|
|
|
'limit' => 10,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
'sms' => [
|
|
|
|
'driver' => Hyperf\AsyncQueue\Driver\RedisDriver::class,
|
|
|
|
'channel' => '{sms.queue}',
|
|
|
|
'timeout' => 2,
|
|
|
|
'retry_seconds' => 5,
|
|
|
|
'handle_timeout' => 10,
|
|
|
|
'processes' => 1,
|
|
|
|
'concurrent' => [
|
|
|
|
'limit' => 5,
|
|
|
|
],
|
|
|
|
],
|
|
|
|
];
|