1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
tenthreadsstrategy.php
См. документацию.
1<?php
2
3namespace Bitrix\Sender\Posting\SegmentThreadStrategy;
4
5use Bitrix\Main\Entity\ReferenceField;
6use Bitrix\Main\ORM\Fields\ExpressionField;
7use Bitrix\Main\Type\DateTime;
8use Bitrix\Sender\Internals\Model\GroupThreadTable;
9use Bitrix\Sender\PostingRecipientTable;
10
12{
13 public const THREADS_COUNT = 10;
14
19 public function isProcessLimited(): bool
20 {
21 $maxParallelExecutions = \COption::GetOptionInt(
22 "sender",
23 "max_parallel_threads",
24 10
25 );
26
27 $count = GroupThreadTable::getCount(
28 [
29 '=STATUS' => GroupThreadTable::STATUS_IN_PROGRESS,
30 ]
31 );
32
33 return $count > $maxParallelExecutions;
34 }
35}
$count
Определения admin_tab.php:4