@Override
  public void afterTest(QTestUtil qt) throws Exception {
    if(service != null) {
      service.close();
    }
    service = null;
    enabled = false;
  }
Adding this qtestoption enables the scheduled query service.
itests/util/src/main/java/org/apache/hadoop/hive/ql/scheduled/QTestScheduledQueryServiceProvider.java