use of es.bsc.compss.scheduler.types.SchedulingInformation in project compss by bsc-wdc.
the class TaskScheduler method reduceWorkerResources.
private <T extends WorkerResourceDescription> void reduceWorkerResources(ResourceScheduler<T> worker, ResourceUpdate<T> modification) {
worker.pendingModification(modification);
SchedulingInformation schedInfo = generateSchedulingInformation(worker);
ReduceWorkerAction<T> action = new ReduceWorkerAction<>(schedInfo, worker, this, modification);
try {
action.schedule(worker, (Score) null);
action.tryToLaunch();
} catch (BlockedActionException | UnassignedActionException | InvalidSchedulingException e) {
// Can not be blocked nor unassigned
}
}
Aggregations