if (historyFile != null) {
historyFileDonePath = new Path(doneDir, historyFile.getName())
.toString();
}
JobHistory.jobHistoryFileMap.put(id, new MovedFileInfo(
historyFileDonePath, System.currentTimeMillis()));
jobTracker.historyFileCopied(id, historyFileDonePath);
// purge the job from the cache
purgeJob(id);