Метод dequeueCandidates
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncProcessor/Base.php
Исходный код
Сигнатура метода
public function dequeueCandidates(int $afterId = 0): array
Возвращает:
array
Описание
One page of candidates, oldest first, keyed by the id of the queue row - the key is the cursor the caller pages with. A candidate may belong to a live owner, and answering with one row would let one long iteration hold up everything behind it, so the caller gets a page and walks past what it cannot own instead of meeting the same rows every five seconds. With nothing to take at four return delays there is nothing for recovery to yield to, so such a page asks once more by one delay - a wider question, and the only other one it costs.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$afterId
|
int
|
0
|
-
|