TezDAGID dagId = IDConverter.fromMRTaskAttemptId(taskAttemptId).getTaskID()
.getVertexID().getDAGId();
this.jobContext = new JobContextImpl(jobConf, dagId, mrReporter);
this.taskAttemptContext =
new TaskAttemptContextImpl(jobConf, taskAttemptId, mrReporter);
if (getState() == State.UNASSIGNED) {
setState(State.RUNNING);
}