}
// Start logging from now (to avoid doubled state, because the code
// path of restoring the task status is same with the that of runtime)
if (RemoteJTProxy.isStateRestoringEnabled(conf)) {
localJTSubmitter = new Submitter(parentClient, jtAttemptId, conf);
}
if (stateFetcher.hasTasksState()) {
// Kill all tasks running on non-existing grants
LOG.info("Beging to kill non-finnished tasks");