• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/queue/queue.php
  • Класс: BitrixImOpenLinesQueueQueue
  • Вызов: Queue::isUndistributedSession
public function isUndistributedSession(): bool
{
	$result = false;

	$resultRequest = SessionCheckTable::getList([
		'select' => ['SESSION_ID'],
		'filter' =>
		[
			'=UNDISTRIBUTED' => 'Y',
			'=SESSION.CONFIG_ID' => $this->config['ID'],
			'!=DATE_QUEUE' => NULL
		],
		'limit' => 1
	])->fetch();

	if (!empty($resultRequest))
	{
		$result = true;
	}

	return $result;
}