protected function postprocessExecution(CommandInterface $command, $response) { if ($command instanceof GetJob) { $this->updateNodeStats($command->parse($response)); $this->switchNodeIfNeeded(); } return $response; }