public QueueStatusBean run(final String user, final String id, boolean enableThreadPool)
    throws NotAuthorizedException, BadParam, IOException, InterruptedException,
           BusyException, TimeoutException, ExecutionException, TooManyRequestsException {
    if (jobRequest.isThreadPoolEnabled() && enableThreadPool) {
      return jobRequest.execute(getJobStatusCallableTask(user, id));
    } else {
      return getJobStatus(user, id);
    }
  }
Current thread id used to set in execution threads.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/StatusDelegator.java