@Override public CompletableFuture<Acknowledge> scheduleOrUpdateConsumers( final ResultPartitionID partitionID, final Time timeout) { if (graphManager.isReconciling()) { return FutureUtils.completedExceptionally( new JobMasterException("The job master is reconciling with task executors.")); } try { executionGraph.scheduleOrUpdateConsumers(partitionID); return CompletableFuture.completedFuture(Acknowledge.get()); } catch (Exception e) { return FutureUtils.completedExceptionally(e); } }
/** * Updates the task execution state for a given task. * * @param taskExecutionState New task execution state for a given task * @return Acknowledge the task execution state update */ @Override public CompletableFuture<Acknowledge> updateTaskExecutionState( final TaskExecutionState taskExecutionState) { checkNotNull(taskExecutionState, "taskExecutionState"); if (graphManager.isReconciling()) { return FutureUtils.completedExceptionally( new JobMasterException("The job master is reconciling with task executors.")); } if (executionGraph.updateState(taskExecutionState)) { return CompletableFuture.completedFuture(Acknowledge.get()); } else { return FutureUtils.completedExceptionally( new ExecutionGraphException("The execution attempt " + taskExecutionState.getID() + " was not found.")); } }
if (JobStatus.CREATED.equals(executionGraph.getState()) && !graphManager.isReconciling()) { scheduleExecutionGraph(); } else {