Метод restoreLaunchedCopy
Сигнатура метода
private function restoreLaunchedCopy(): void
Возвращает:
void
Описание
Creates the copy right here instead of leaving it to the schedule of the owner of the invariant: the forced NEXT_EXEC is not guaranteed to survive. A cycle of the agent running at this very moment has already read the feature as disabled and set the daily period for itself, and CAgent::ExecuteAgents() rewrites NEXT_EXEC by that period once the cycle ends - no matter when the forcing was written. No second copy can appear: the restore is idempotent and mutually excluded by its named lock. A refusal is not handled here, because the scenario writes its reason to the journal of the feature on its own and the owner of the invariant repeats the attempt. Only a throwable is recorded, and none is let out: enabling a feature must not fail because of an auxiliary path.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/Feature/CallScoringV2.php