@Override
    public String toString() {
      return "[state=" + state + ", session=" + session + "]";
    }
Extracts the session and cancel the operation, both only if done.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/WorkloadManager.java