code: public void expiredLaunchingTask(TaskAttemptID taskId) {
      synchronized (lockObject) {
        String trackerName = taskLookupTable.getAssignedTracker(taskId);
        trackerStats.recordTimeout(trackerName);
        localJTSubmitter.submit(new TaskTimeout(trackerName));
        failTask(taskId, "Error launching task", false);
      }
    }
docs: Handle a task that could not be launched.
  @param taskId The task attempt ID.