[*] mq мелкие правки диспетчера очереди

This commit is contained in:
rsgrinko committed 2022-07-05 16:35:41 +03:00
1 parent bb78d6cfc8
commit 786da9911c
2 files changed
+6 -4

No files matched your search

+2 -2
View File
@@ -12,9 +12,9 @@
<div class="media-body"> <div class="media-body">
<ul class="breadcrumb"> <ul class="breadcrumb">
<li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
<li>Список пользователей</li> <li>Диспетчер очереди</li>
</ul> </ul>
<h4>Список пользователей</h4> <h4>Диспетчер очереди</h4>
</div> </div>
</div><!-- media --> </div><!-- media -->
</div><!-- pageheader --> </div><!-- pageheader -->
+4 -2
View File
@@ -51,7 +51,7 @@
/** /**
* Лимит количества одновременно выполняемых задач * Лимит количества одновременно выполняемых задач
*/ */
const WORKERS_LIMIT = 5; const WORKERS_LIMIT = 10;
/** /**
* @var DB|null $DB Объект базы * @var DB|null $DB Объект базы
@@ -69,10 +69,12 @@
/** /**
* Тестовая функция 2 * Тестовая функция 2
* *
* @param mixed ...$params
*
* @return string * @return string
* @throws CoreException * @throws CoreException
*/ */
public static function test2(): string public static function test2(...$params): string
{ {
sleep(rand(10, 30)); sleep(rand(10, 30));
$result = rand(0, 100); $result = rand(0, 100);