// at this point allocate has been called and so node count must be available
// may change after YARN-1722
int nodeCount = taskScheduler.getClusterNodeCount();
if (nodeCount != cachedNodeCount) {
cachedNodeCount = nodeCount;
sendEvent(new AMNodeEventNodeCountUpdated(cachedNodeCount));
}
return dagAppMaster.getProgress();
}