• Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/posting/sender.php
  • Класс: BitrixSenderPostingSender
  • Вызов: Sender::isStoppedOnRun
protected function isStoppedOnRun()
{
	// check pause or stop status
	if (++$this->checkStatusCounter < $this->checkStatusStep)
	{
		return false;
	}

	$checkStatusDb = ModelLetterTable::getList(
		[
			'select' => ['ID'],
			'filter' => [
				'=ID'     => $this->letterId,
				'=STATUS' => ModelLetterTable::STATUS_SEND
			]
		]
	);
	if (!$checkStatusDb->fetch())
	{
		return true;
	}

	$this->checkStatusCounter = 0;

	return false;
}