예제 #1
0
 /**
  * Resolve timeouts
  * Retrieves all expired timeouts and triggers proper events
  * Return array of run histories
  *
  * @return array
  */
 public function resolveTimeouts()
 {
     $this->lockHandler->releaseTimedOut(new \DateInterval(self::LOCK_TIMEOUT_INTERVAL));
     $result = [];
     $process = $this->adapter->getProcess();
     $timeouts = $this->timeoutHandler->getExpired();
     foreach ($timeouts as $timeout) {
         $this->resolveTimeout($process, $timeout, $result);
     }
     return $result;
 }