private void cleanupLocalDirs(QueryInfo queryInfo, long deleteDelay) {
    String[] localDirs = queryInfo.getLocalDirsNoCreate();
    if (localDirs != null) {
      for (String localDir : localDirs) {
        cleanupDir(localDir, deleteDelay);
        ShuffleHandler.get().unregisterDag(localDir, queryInfo.getAppIdString(), queryInfo.getDagIdentifier());
      }
    }
  }
Register completion for a query
@param queryIdentifier
@param deleteDelay
llap-server/src/java/org/apache/hadoop/hive/llap/daemon/impl/QueryTracker.java