• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/counterservice.php
  • Класс: BitrixTasksInternalsCounterCounterService
  • Вызов: CounterService::enableJob
private function enableJob(): void
{
	if (self::$jobOn)
	{
		return;
	}

	$application = Application::getInstance();
	$application && $application->addBackgroundJob(
		['BitrixTasksInternalsCounterCounterService', 'proceedEvents'],
		[],
		Application::JOB_PRIORITY_LOW - 2
	);

	self::$jobOn = true;
}