private String getMode(BaseWork work) {
    String mode = "container";
    if (work != null) {
      // uber > llap > container
      if (work.getUberMode()) {
        mode = "uber";
      } else if (work.getLlapMode()) {
        mode = "llap";
      } else {
        mode = "container";
      }
    }
    return mode;
  }
Try to get most the data required from dagClient in the constructor itself so that even after
the tez job has finished this object can be used for later use.s
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/monitoring/TezProgressMonitor.java