code: private void cancel(final long globalModVersionOfFailover) {
  		executionGraph.getJobMasterMainThreadExecutor().assertRunningInMainThread();
  		while (true) {
  			JobStatus curStatus = this.state;
  			if (curStatus.equals(JobStatus.RUNNING)) {
  				if (transitionState(curStatus, JobStatus.CANCELLING)) {
  
  					createTerminationFutureOverAllConnectedVertexes()
  						.thenAccept((nullptr) -> allVerticesInTerminalState(globalModVersionOfFailover));
  					break;
  				}
  			} else {
  				LOG.info("FailoverRegion {} is {} when cancel.", id, state);
  				break;
  			}
  		}
  	}
docs: cancel all executions in this sub graph