public void run() {
      try (NamedThread namedThread = new NamedThread(getThreadName())) {
        processQuery(pollResponse);
      } finally {
        executorStopped(this);
      }
    }
Responsible for a single execution of a scheduled query.

The execution happens in a separate thread.
ql/src/java/org/apache/hadoop/hive/ql/scheduled/ScheduledQueryExecutionService.java