1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
segmentdatabuilderjob.php
См. документацию.
1<?php
8
9namespace Bitrix\Sender\Runtime;
10
11use Bitrix\Main\Type\DateTime;
12
18{
26 public static function addEventAgent(int $groupStateId)
27 {
29 static::getAgentName((int)$groupStateId),
30 10,
31 (new DateTime())->add('+10 seconds')
32 );
33 }
34
42 public static function removeAgentFromDB(int $groupStateId)
43 {
45 static::getAgentName((int)$groupStateId)
46 );
47 }
48
56 public static function existsInDB(int $groupStateId): bool
57 {
58 return (new SegmentDataBuilderJob())->agentExists(
59 static::getAgentName((int)$groupStateId)
60 );
61 }
62
70 public static function getAgentName(int $groupStateId)
71 {
72 return "\Bitrix\Sender\Posting\SegmentDataBuilder::run({$groupStateId});";
73 }
74}
addAgent($agentName, $interval=60, $nextDateExec='')
Определения job.php:50
removeAgent($agentName)
Определения job.php:69
static addEventAgent(int $groupStateId)
Определения segmentdatabuilderjob.php:26
static existsInDB(int $groupStateId)
Определения segmentdatabuilderjob.php:56
static getAgentName(int $groupStateId)
Определения segmentdatabuilderjob.php:70
static removeAgentFromDB(int $groupStateId)
Определения segmentdatabuilderjob.php:42