- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/posting/segmentdatabuilder.php
- Класс: BitrixSenderPostingSegmentDataBuilder
- Вызов: SegmentDataBuilder::checkNotCompleted
static function checkNotCompleted(): string
{
self::checkBlockers();
$groupStateList = GroupStateTable::getList([
'select' => [
'GROUP_ID',
'FILTER_ID',
'ENDPOINT',
],
'filter' => [
'!@STATE' => [
GroupStateTable::STATES['COMPLETED'],
GroupStateTable::STATES['HALTED'],
]
],
]);
while ($groupState = $groupStateList->fetch())
{
self::checkIsSegmentPrepared((int)$groupState['GROUP_ID']);
}
$groupList = GroupTable::getList([
'select' => [
'ID'
],
'filter' => [
'=STATUS' => GroupTable::STATUS_IN_PROGRESS
]
]);
while ($group = $groupList->fetch())
{
self::checkIsSegmentPrepared((int)$group['ID']);
}
return '\BitrixSender\Posting\SegmentDataBuilder::checkNotCompleted();';
}