code: public function pauseSession(AssessmentTestSession $session) {
          $session->updateDuration();
          return $this->getDeliveryExecution($session)->setState(DeliveryExecution::STATE_PAUSED);
      }
docs: Pause delivery execution.
  @param AssessmentTestSession $session
  @return boolean success