CBPSchedulerService::addAgentInternal: Bitrix method

      
<?php 
//  CBPSchedulerService :: addAgentInternal()
//  /dist/bitrix/modules/bizproc/classes/general/schedulerservice.php:369

    
private static function addAgentInternal($name$expiresAt)
    {
        
CTimeZone::Disable();
        
$result CAgent::AddAgent(
            
$name,
            
"bizproc",
            
"N",
            
10,
            
"",
            
"Y",
            
date($GLOBALS["DB"]->DateFormatToPHP(FORMAT_DATETIME), $expiresAt)
        );
        
CTimeZone::Enable();
        return 
$result;
    }