Метод releaseTemplateLock

public

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

public function releaseTemplateLock(ManagedAgentIdentity $identity): void

Возвращает: void

Описание

Releases the logical lock {@see self::acquireTemplateLock()} took, and does nothing for an identity this request did not lock that way. The release belongs to the finally block of its caller, therefore a failed one is swallowed the same way a failed acquisition is: the caller has to learn the reason its own work was refused for and not the way the lock was given back. A lock that could not be released dies with the connection at the end of the request anyway, and the request stops asking for it right here.

Параметры

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

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

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

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

Исходный код

PHP