Example #1
0
File: Task.php Project: eyehere/aha
 protected function _doTask($package)
 {
     $objModel = new \Daemon\Models\Demo($this->_objAha);
     $grantRet = (yield $objModel->doTask($package));
     if (false === $grantRet) {
         Log::redoLog()->debug(array('redo' => $package));
     }
     $arrResponse = array('cmd' => Constant::PACKAGE_TYPE_COMPLETE, 'content' => array('pid' => $this->_worker->pid));
     $this->_send($arrResponse);
     (yield AHA_DECLINED);
 }