1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
tenthreadsstrategy.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Sender\Posting\SegmentThreadStrategy;
4
5
use Bitrix\Main\Entity\ReferenceField;
6
use Bitrix\Main\ORM\Fields\ExpressionField;
7
use Bitrix\Main\Type\DateTime;
8
use Bitrix\Sender\Internals\Model\GroupThreadTable;
9
use Bitrix\Sender\PostingRecipientTable;
10
11
class
TenThreadsStrategy
extends
AbstractThreadStrategy
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
$count
Определения
admin_tab.php:4
Bitrix\Sender\Posting\SegmentThreadStrategy\AbstractThreadStrategy
Определения
abstractthreadstrategy.php:17
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy
Определения
tenthreadsstrategy.php:12
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy\THREADS_COUNT
const THREADS_COUNT
Определения
tenthreadsstrategy.php:13
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy\isProcessLimited
isProcessLimited()
Определения
tenthreadsstrategy.php:19
bitrix
modules
sender
lib
posting
segmentthreadstrategy
tenthreadsstrategy.php
Создано системой
1.14.0