Метод compensate

private

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

private function compensate(string $operation, ManagedAgentIdentity $identity, ManagedAgentInstance $instance, string $internalCode, Throwable|string|null $cause = null): SystemAiAgentLifecycleResult

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

Описание

Moves the instance into removal and runs the body of the removal algorithm, which is the compensation of an enabling that failed after its copy appeared. A final success of the enabling is never returned from here: an unfinished compensation answers with the pending cleanup, and a finished one still answers that the enabling failed.

Параметры

5
Имя Тип По умолчанию Флаги
$operation string —
—
$identity ManagedAgentIdentity —
—
$instance ManagedAgentInstance —
—
$internalCode string —
—
$cause Throwable|string|null null
—

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

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

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

Исходный код

PHP