• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/effective.php
  • Класс: BitrixTasksInternalsEffective
  • Вызов: Effective::createAgentForNextEfficiencyRecount
static function createAgentForNextEfficiencyRecount()
{
	$date = new DateTime();
	$date = $date->modify('first day of next month')->format('d.m.Y 00:00:01');

	CAgent::AddAgent(
		'BitrixTasksInternalsEffective::runEfficiencyRecount();',
		'tasks',
		'N',
		86400,
		"",
		"Y",
		$date
	);
}