Метод releaseInstanceLink

private

Сигнатура метода

private function releaseInstanceLink(ManagedAgentInstance $instance): ?string

Возвращает: ?string

Описание

Releases the service link of the instance in one transaction: the row is locked, the registry is required to be empty and only then the link is deleted. The creation barrier uses the same logical lock this pass holds, therefore no resource can appear between the final reconciliation and the removal of the link. A resource left behind is a regular outcome and not a failure, so that branch closes the transaction instead of rolling it back: it has written nothing, the lock of the row is a reading one, and the command is public, so a rollback of a nested transaction would end the transaction of the caller as well.

Параметры

1
Имя Тип По умолчанию Флаги
$instance ManagedAgentInstance —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulesbizproc/lib/Internal/AiAgent/Lifecycle/Service/SystemAiAgentLifecycleService.php
Расположение метода в файле
Строки 1357–1392

Исходный код

PHP