Метод tryLockRun

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

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

Путь к исходному файлу строки 437–442
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncProcessor/Base.php

Исходный код

PHP
public

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

public function tryLockRun(SyncInfo $syncInfo): bool

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

Описание

Ownership of the iteration itself, as opposed to the short lock guarding the queue row. The database releases it when the owning connection goes away, so a killed process frees it and a live one keeps it - that is what separates a stuck item from a slow one. Never waits. The guarantee is the driver's: Connection::lock() is a stub reporting success without taking anything, and only mysql and pgsql - the drivers this product ships - implement it.

Параметры

1
Имя Тип По умолчанию Флаги
$syncInfo SyncInfo -
-