public void setWmTaskFinished(boolean isGuaranteed, boolean isPendingUpdate) {
    if (isPendingUpdate) {
      if (isGuaranteed) {
        wmGuaranteedPendingCount.incr(-1);
      } else {
        wmSpeculativePendingCount.incr(-1);
      }
    } else {
      if (isGuaranteed) {
        wmGuaranteedCount.incr(-1);
      } else {
        wmSpeculativeCount.incr(-1);
      }
    }
  }
Metrics about the llap task scheduler.
llap-tez/src/java/org/apache/hadoop/hive/llap/tezplugins/metrics/LlapTaskSchedulerMetrics.java