Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
}
Bitrix\Main\ORM\Fields\ExpressionField
Definition
expressionfield.php:25
Bitrix\Main\Type\DateTime
Definition
datetime.php:9
Bitrix\Sender\Internals\Model\GroupThreadTable
Definition
groupthread.php:33
Bitrix\Sender\Posting\SegmentThreadStrategy\AbstractThreadStrategy
Definition
abstractthreadstrategy.php:17
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy
Definition
tenthreadsstrategy.php:12
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy\THREADS_COUNT
const THREADS_COUNT
Definition
tenthreadsstrategy.php:13
Bitrix\Sender\Posting\SegmentThreadStrategy\TenThreadsStrategy\isProcessLimited
isProcessLimited()
Definition
tenthreadsstrategy.php:19
Bitrix\Sender\PostingRecipientTable
Definition
posting.php:663
Bitrix\Sender\Posting\SegmentThreadStrategy
Definition
abstractthreadstrategy.php:3
modules
sender
lib
posting
segmentthreadstrategy
tenthreadsstrategy.php
Создано системой
1.10.0