[*] mq механизм лимита воркеров

This commit is contained in:
rsgrinko committed 2022-07-05 00:14:16 +03:00
1 parent b214e64245
commit a920f1703b
1 file changed
+1 -3
+1 -3
View File
@@ -163,9 +163,7 @@
{
$this->setTasksActiveStatus();
if ($this->hasMaxWorkers()) {
SystemFunctions::sendTelegram(
'Превышено максимальное количество воркеров. Работает ' . $this->getCountWorkers() . '/' . self::WORKERS_LIMIT
);
Log::logToFile('Превышено максимальное количество воркеров. Работает ' . $this->getCountWorkers() . '/' . self::WORKERS_LIMIT, self::LOG_FILE);
return;
}
$arTasks = $this->getActiveTasks();