Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 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;
 }