• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/notification/event/eventhandler.php
  • Класс: Bitrix\Tasks\Internals\Notification\Event\EventHandler
  • Вызов: EventHandler::addBackgroundJob
private function addBackgroundJob(): void
{
	if (self::$isJobIsOn)
	{
		return;
	}

	$application = Application::getInstance();
	$application && $application->addBackgroundJob([__CLASS__, 'process'], [], (Application::JOB_PRIORITY_LOW - 3));

	self::$isJobIsOn = true;
}