public boolean scheduleForExecution(SlotProvider slotProvider, boolean queued) { return this.currentExecution.scheduleForExecution(slotProvider, queued); }
/** * Schedules the current execution of this ExecutionVertex. * * @param slotProvider to allocate the slots from * @param queued if the allocation can be queued * @param locationPreferenceConstraint constraint for the location preferences * @return Future which is completed once the execution is deployed. The future * can also completed exceptionally. */ public CompletableFuture<Void> scheduleForExecution( SlotProvider slotProvider, boolean queued, LocationPreferenceConstraint locationPreferenceConstraint) { return this.currentExecution.scheduleForExecution( slotProvider, queued, locationPreferenceConstraint); }
/** * Schedules the current execution of this ExecutionVertex. * * @param slotProvider to allocate the slots from * @param queued if the allocation can be queued * @param locationPreferenceConstraint constraint for the location preferences * @param allPreviousExecutionGraphAllocationIds set with all previous allocation ids in the job graph. * Can be empty if the allocation ids are not required for scheduling. * @return Future which is completed once the execution is deployed. The future * can also completed exceptionally. */ public CompletableFuture<Void> scheduleForExecution( SlotProvider slotProvider, boolean queued, LocationPreferenceConstraint locationPreferenceConstraint, @Nonnull Set<AllocationID> allPreviousExecutionGraphAllocationIds) { return this.currentExecution.scheduleForExecution( slotProvider, queued, locationPreferenceConstraint, allPreviousExecutionGraphAllocationIds); }
/** * Schedules the current execution of this ExecutionVertex. * * @param slotProvider to allocate the slots from * @param queued if the allocation can be queued * @param locationPreferenceConstraint constraint for the location preferences * @param allPreviousExecutionGraphAllocationIds set with all previous allocation ids in the job graph. * Can be empty if the allocation ids are not required for scheduling. * @return Future which is completed once the execution is deployed. The future * can also completed exceptionally. */ public CompletableFuture<Void> scheduleForExecution( SlotProvider slotProvider, boolean queued, LocationPreferenceConstraint locationPreferenceConstraint, @Nonnull Set<AllocationID> allPreviousExecutionGraphAllocationIds) { return this.currentExecution.scheduleForExecution( slotProvider, queued, locationPreferenceConstraint, allPreviousExecutionGraphAllocationIds); }
@Override public void accept(ExecutionState value) { try { long createTimestamp = System.currentTimeMillis(); Execution newExecution = vertexToRecover.resetForNewExecution(createTimestamp, globalModVersion); newExecution.scheduleForExecution(); } catch (GlobalModVersionMismatch e) { // this happens if a concurrent global recovery happens. simply do nothing. } catch (Exception e) { executionGraph.failGlobal( new Exception("Error during fine grained recovery - triggering full recovery", e)); } } }, callbackExecutor);
public CompletableFuture<Void> scheduleForExecution() { final ExecutionGraph executionGraph = getVertex().getExecutionGraph(); final SlotProvider resourceProvider = executionGraph.getSlotProvider(); final boolean allowQueued = executionGraph.isQueuedSchedulingAllowed(); return scheduleForExecution( resourceProvider, allowQueued, LocationPreferenceConstraint.ANY, Collections.emptySet()); }
public CompletableFuture<Void> scheduleForExecution() { final ExecutionGraph executionGraph = getVertex().getExecutionGraph(); final SlotProvider resourceProvider = executionGraph.getSlotProvider(); final boolean allowQueued = executionGraph.isQueuedSchedulingAllowed(); return scheduleForExecution( resourceProvider, allowQueued, LocationPreferenceConstraint.ANY, Collections.emptySet()); }
public CompletableFuture<Void> scheduleForExecution() { final ExecutionGraph executionGraph = getVertex().getExecutionGraph(); final SlotProvider resourceProvider = executionGraph.getSlotProvider(); final boolean allowQueued = executionGraph.isQueuedSchedulingAllowed(); return scheduleForExecution( resourceProvider, allowQueued, LocationPreferenceConstraint.ANY); }
public boolean scheduleForExecution() { SlotProvider resourceProvider = getVertex().getExecutionGraph().getSlotProvider(); boolean allowQueued = getVertex().getExecutionGraph().isQueuedSchedulingAllowed(); return scheduleForExecution(resourceProvider, allowQueued); }
long createTimestamp = System.currentTimeMillis(); Execution newExecution = vertexToRecover.resetForNewExecution(createTimestamp, globalModVersion); newExecution.scheduleForExecution();
long createTimestamp = System.currentTimeMillis(); Execution newExecution = vertexToRecover.resetForNewExecution(createTimestamp, globalModVersion); newExecution.scheduleForExecution();