Ejemplo n.º 1
0
 /**
  * Gateway for Check Response Timeout Checks. http://SERVER/cron/checktimeout should be run in daily cron
  * All time units are minutes
  * 
  */
 public function checktimeoutAction()
 {
     $res = Application_Model_Cron::setTimeoutChecks('Check', 11);
     $res = Application_Model_Cron::setTimeoutChecks('Check_response', 30);
     $res = Application_Model_Cron::setTimeoutChecks('Request', 60, true);
     // 1500 => more than 48 hrs
     $res = Application_Model_Cron::setTimeoutChecks('Request_response', 3000);
     $res = Application_Model_Cron::setTimeoutChecks('Update', 60, true);
     $res = Application_Model_Cron::setTimeoutChecks('Update_response', 3000);
     $res = Application_Model_Cron::setTimeoutChecks('KD_Update', 3000);
     $res = Application_Model_Cron::setTimeoutChecks('KD_Update_response', 3000);
     $res = Application_Model_Cron::setTimeoutChecks('Inquire_number', 60);
     $res = Application_Model_Cron::setTimeoutChecks('Inquire_number_response', 60);
     //		$res = Application_Model_Cron::setTimeoutChecks('Cancel', 15);
     //		$res = Application_Model_Cron::setTimeoutChecks('Cancel_response', 15);
     //		$res = Application_Model_Cron::setTimeoutChecks('Execute', 15);
     //		$res = Application_Model_Cron::setTimeoutChecks('Execute_response', 60);
     //		$res = Application_Model_Cron::setTimeoutChecks('Publish', 15);
     //		$res = Application_Model_Cron::setTimeoutChecks('Publish_response', 5);
     //		$res = Application_Model_Cron::setTimeoutChecks('Return', 10);
     //		$res = Application_Model_Cron::setTimeoutChecks('Return_response', 10);
     //		$res = Application_Model_Cron::setTimeoutChecks('Cancel_publish', 15);
     //		$res = Application_Model_Cron::setTimeoutChecks('Cancel_publish_respon', 0);
     //		$res = Application_Model_Cron::setTimeoutChecks('Up_system', 0);
     //		$res = Application_Model_Cron::setTimeoutChecks('Down_system', 0);
 }
Ejemplo n.º 2
0
 public function checkifgoodpublish($reqId)
 {
     $tbl = new Application_Model_DbTable_Transactions(Np_Db::slave());
     $select = $tbl->select();
     $select->where('request_id=?', $reqId)->where('message_type = "Publish_response" ')->where("reject_reason_code is NULL OR reject_reason_code = '' ");
     $result = $select->query();
     $rows = $result->fetchAll();
     foreach ($rows as $row) {
         $publish_update_result = Application_Model_Cron::updateGoodPublish($row['request_id'], substr($row['trx_no'], 0, 2));
     }
     return;
 }
Ejemplo n.º 3
0
 /**
  * method to force publish on specific request
  */
 public function publishAction()
 {
     $disabled_output = $this->getRequest()->getParam('no-output');
     if (!isset($disabled_output) || !$disabled_output) {
         $output_enabled = true;
     } else {
         $output_enabled = false;
     }
     $this->view->output_enabled = $output_enabled;
     $reqId = strtoupper($this->getRequest()->getParam('reqId'));
     $cron = new Application_Model_Cron();
     $request = $cron->getRequestByID($reqId);
     if (FALSE !== $request) {
         $sentRows = $cron->checkPublish($request);
         if ($sentRows === TRUE) {
             $this->view->status = "Publish response";
         } else {
             $this->view->status = TRUE;
             $this->view->rows = $sentRows;
         }
     } else {
         $this->view->status = "No request with this id: " . $reqId;
     }
 }