Метод runNow
Сигнатура метода
public static function runNow(): void
Возвращает:
void
Описание
The forced time is best-effort and may not be relied on alone. The agent is registered with IS_PERIOD = 'N', so CAgent::ExecuteAgents() ends every cycle with an unconditional NEXT_EXEC = now + the period the cycle asked for, losing whatever was written meanwhile - and a cycle running right now has read the feature as still disabled and asked for the daily period. That is why the activation of the feature restores the copy itself as well. The ladder of the attempts is not touched here: it is reset by the activation of the feature, which is the only caller that opens a new period of the feature, and it has to be reset before the enabled state is published.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/agent/copilot/callscoringv2bootstrapagent.php