Метод syncNext
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncService.php
Исходный код
Сигнатура метода
protected function syncNext(): Result
Возвращает:
Result
Описание
A tick takes the first candidate it can own. A live owner is not work for this process and not a reason to stop either - one long iteration must not hold up the items behind it - so the tick walks on, page by page, until it owns something or the queue ends. Without the walk a head held by owners that outlive their rows would be the whole answer every five seconds. The budget bounds the cost of one tick, and the cursor outlives it so that the budget does not bound the walk. A tick that did find work puts the cursor back to the beginning, so the ordinary order of the queue is the ordinary case.