CBPSchedulerService::addEventRepeatAgent: Bitrix method

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

    
private static function addEventRepeatAgent($event$counter 0)
    {
        
$expiresAt self::getExpiresTimeByCounter($counter);

        if (
$expiresAt)
        {
            if (
$counter === 0)
            {
                
$filteredParameters self::filterEventParameters($event['EVENT_PARAMETERS']);
                
SchedulerEventTable::update($event['ID'], ['EVENT_PARAMETERS' => $filteredParameters]);
            }

            ++
$counter;
            
$eventId $event['ID'];
            
$name "CBPSchedulerService::repeatEvent({$eventId}{$counter});";
            
self::addAgentInternal($name$expiresAt);
        }
    }