/**
  * Wrapper to handle execution process of the task
  * @param string $id unique identifier of the task to be executed
  */
 public function actionRun($id)
 {
     CronProcess::createById($id, $this->_service)->run();
 }
Exemple #2
0
 /**
  * Create process instance with additional information
  * @return CronProcess
  */
 public function getProcessInfo()
 {
     if ($this->_process === null) {
         $this->_process = CronProcess::createByTask($this, Yii::app()->cron);
     }
     return $this->_process;
 }