示例#1
0
 public function jobAction()
 {
     set_time_limit(0);
     $jobKey = $this->_getParam('jobKey', null);
     if (is_null($jobKey)) {
         throw new Ot_Exception_Input('msg-error-nameNotSet');
     }
     $dispatcher = new Ot_Cron_Dispatcher();
     $dispatcher->dispatch($jobKey);
     $this->_helper->messenger->addSuccess('Job executed successfully');
     $this->_helper->redirector->gotoRoute(array('controller' => 'cron', 'action' => 'index'), 'ot', true);
 }
 public function indexAction()
 {
     $dispatcher = new Ot_Cron_Dispatcher();
     $dispatcher->dispatch();
 }