public long getLevelMinScheduledTime(int level, long taskThreadUsageNanos) {
    levelMinScheduledTime[level].compareAndSet(-1, taskThreadUsageNanos);
    return levelMinScheduledTime[level].get();
  }
MultilevelPriorityQueue charges the quanta run time to the task and the level it belongs to in
an effort to maintain the target thread utilization ratios between levels and to maintain
fairness within a level.

<p>Consider an example DriverTask where a read hung for several minutes. This is either a bug
or a failing dependency. In either case we do not want to charge the task too much, and we
especially do not want to charge the level too much - i.e. cause other queries in this level to
starve.

@return the new priority for the task
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/schedule/queue/multilevelqueue/MultilevelPriorityQueue.java