Метод readInstance
Сигнатура метода
private function readInstance(ManagedAgentInstance $instance): ?ManagedAgentInstance
Возвращает:
?ManagedAgentInstance
Описание
The record as the pass left it, or null when it is gone or unreadable. A pass that ended without an exception may still have charged a retry inside the lifecycle service - that is what a failed cleanup of a resource does - and the service answers with the public result of the operation and not with the counter of the record. Reading the record is therefore the only way the agent learns of a failure it did not raise itself, which is the very case the warning exists for.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$instance
|
ManagedAgentInstance
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Infrastructure/Agent/ManagedSystemAiAgentCleanupAgent.php
Расположение метода в файле
Строки
275–285