Comos\Qpm\Supervision\Config::getTermTimeout PHP Method

getTermTimeout() public method

public getTermTimeout ( ) : float
return float
    public function getTermTimeout()
    {
        return $this->_termTimeout;
    }

Usage Example

Example #1
0
 protected function dealWithTermTimeout()
 {
     if ($this->isDealedWithTermTimeout) {
         return false;
     }
     if (microtime(true) - $this->termTime <= $this->config->getTermTimeout()) {
         return false;
     }
     try {
         Logger::info("process[" . $this->getProcess()->getPid() . "] will be killed for termTimeout");
         $this->getProcess()->kill();
         $this->isDealedWithTermTimeout = true;
     } catch (\Exception $e) {
         Logger::err($e);
         return false;
     }
     return true;
 }
All Usage Examples Of Comos\Qpm\Supervision\Config::getTermTimeout