main/core/Manager/Task/ScheduledTaskManager.php
public function markAsExecuted(ScheduledTask $task, \DateTime $executionDate = null)
    {
        if (empty($executionDate)) {
            $executionDate = new \DateTime();
        }

        $task->setExecutionDate($executionDate);

        $this->om->persist($task);
        $this->om->flush();
    }
public function markAsExecuted(ScheduledTask $task, \DateTime $executionDate = null)
    {
        if (empty($executionDate)) {
            $executionDate = new \DateTime();
        }

        $task->setExecutionDate($executionDate);

        $this->om->persist($task);
        $this->om->flush();
    }
public function markAsExecuted ( ScheduledTask $ task , \ DateTime $ executionDate = null ) { if ( empty ( $ executionDate ) ) { $ executionDate = new \ DateTime ( ) ; } $ task -> setExecutionDate ( $ executionDate ) ; $ this -> om -> persist ( $ task ) ; $ this -> om -> flush ( ) ; }
Flags a ScheduledTask as executed.

@param ScheduledTask $task
@param \DateTime     $executionDate
Flags a ScheduledTask as executed .