Exemple #1
0
 /**
  * Postprocess the command execution, eg. update node stats
  *
  * @param CommandInterface $command
  * @param mixed            $response
  *
  * @return mixed
  * @throws ConnectionException
  */
 protected function postprocessExecution(CommandInterface $command, $response)
 {
     if ($command instanceof GetJob) {
         $this->updateNodeStats($command->parse($response));
         $this->switchNodeIfNeeded();
     }
     return $response;
 }