public List<JobItemBean> run(final String user, final boolean showall, final String jobId,
                               final int numRecords, final boolean showDetails)
    throws NotAuthorizedException, BadParam, IOException, InterruptedException, BusyException,
           TimeoutException, ExecutionException, TooManyRequestsException {

    if (jobRequest.isThreadPoolEnabled()) {
      return jobRequest.execute(getJobListTask(user, showall, jobId,numRecords, showDetails));
    } else {
      return listJobs(user, showall, jobId, numRecords, showDetails);
    }
  }
Current thread id used to set in execution threads.
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/ListDelegator.java