• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/counterqueueagent.php
  • Класс: BitrixTasksInternalsCounterCounterQueueAgent
  • Вызов: CounterQueueAgent::addAgent
public function addAgent(): void
{
	$res = CAgent::GetList(
		['ID' => 'DESC'],
		[
			'=NAME' => static::class . "::execute();"
		]
	);
	if ($res->Fetch())
	{
		return;
	}

	CAgent::AddAgent(self::getAgentName(), "tasks", "N", 0, "", "Y", "");
}