Метод add
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
49–66
~/bitrix/modulesim/lib/V2/Integration/AI/TaskCreation/AutoTaskQueueManager.php
Исходный код
Сигнатура метода
public function add(array $messageIds, AutoTaskType $type = AutoTaskType::TaskCreation, ?array $params = null): void
Возвращает:
void
Описание
Inserts a dedup/state record for the selection, replacing an expired one if present. MUST be called while holding the per-entity connection lock (see SingleMessageCreator::sendAiQuery / MultipleMessagesCreator::registerBatch): the expired-record replacement below is a non-atomic read-delete-insert and is only race-safe under that external lock. The insert itself is duplicate-safe via the (ENTITY_TYPE, ENTITY_ID) unique index.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$messageIds
|
array
|
-
|
-
|
$type
|
AutoTaskType
|
AutoTaskType::TaskCreation
|
-
|
$params
|
?array
|
null
|
-
|