public void resetTaskQuotas(long startTimeMills) {
    tableLock.lock();
    try {
      taskQuotas.clear();
      taskQuotas.addAll(
          getAs(
              OptimizingMapper.class,
              mapper -> mapper.selectTaskQuotasByTime(tableIdentifier.getId(), startTimeMills)));
    } finally {
      tableLock.unlock();
    }
  }
TODO: this is not final solution

@param startTimeMills
amoro-ams/src/main/java/org/apache/amoro/server/table/DefaultOptimizingState.java