From 786da9911c4be88ef921b9de960b3af006764001 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Tue, 5 Jul 2022 16:35:41 +0300 Subject: [PATCH] =?UTF-8?q?[*]=20mq=20=D0=BC=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8=20=D0=B4=D0=B8=D1=81?= =?UTF-8?q?=D0=BF=D0=B5=D1=82=D1=87=D0=B5=D1=80=D0=B0=20=D0=BE=D1=87=D0=B5?= =?UTF-8?q?=D1=80=D0=B5=D0=B4=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/threads.php | 4 ++-- core/lib/Core/Models/MQ.class.php | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/admin/threads.php b/admin/threads.php index 73e6e7d..cc54016 100644 --- a/admin/threads.php +++ b/admin/threads.php @@ -12,9 +12,9 @@
-

Список пользователей

+

Диспетчер очереди

diff --git a/core/lib/Core/Models/MQ.class.php b/core/lib/Core/Models/MQ.class.php index f3dddc2..48c8362 100644 --- a/core/lib/Core/Models/MQ.class.php +++ b/core/lib/Core/Models/MQ.class.php @@ -51,7 +51,7 @@ /** * Лимит количества одновременно выполняемых задач */ - const WORKERS_LIMIT = 5; + const WORKERS_LIMIT = 10; /** * @var DB|null $DB Объект базы @@ -69,10 +69,12 @@ /** * Тестовая функция 2 * + * @param mixed ...$params + * * @return string * @throws CoreException */ - public static function test2(): string + public static function test2(...$params): string { sleep(rand(10, 30)); $result = rand(0, 100);