Метод closeTheLadder

private

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

private function closeTheLadder(int $storedAttempts, string $reason, array $context): bool

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

Описание

The decision to give up on the feature is made from the state this cycle read when it started, and it is acted upon at the end of it. In between an administrator can switch the feature off and on again: the activation of the new period resets the ladder and restores the copy itself, and switching the feature off afterwards would switch off a working feature. The window is not the microseconds of one branch either - Option::get answers from the snapshot of the options the process loads once per hit. The counter of the ladder is what tells the periods of the feature apart: the activation drops it before it publishes the enabled state, and nothing else writes it. So the counter is consumed by a conditional delete first, and the feature is read again after it - by then the snapshot of the options is dropped, and the state comes from the database.

Параметры

3
Имя Тип По умолчанию Флаги
$storedAttempts int —
—
$reason string —
—
$context array —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/agent/copilot/callscoringv2bootstrapagent.php
Расположение метода в файле
Строки 321–351

Исходный код

PHP