public ContextBuilder startAsDaemon(boolean daemon) {
      this.startAsDaemon = daemon;
      return this;
    }
Types of tasks that exactly have one instance in a given warehouse.
For those tasks which belong to the same type, they will be running in the same leader.
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/leader/LeaderElectionContext.java