private void ensureHaveDataOnCurrentItems()

in server/src/jetbrains/buildServer/serverSide/priority/BuildQueuePriorityOrdering.java [168:184]


  private void ensureHaveDataOnCurrentItems(List<SQueuedBuild> items) {
    for (SQueuedBuild item : items) {
      String itemId = item.getItemId();
      Integer priority = myPrioritiesOnTheInsertMoment.get(itemId);
      if (priority == null) {
        priority = getCurrentBuildTypePriority(item);
        myLogger.warn("Cannot find priority of the item " + item + ", use default = " + priority);
        myPrioritiesOnTheInsertMoment.put(itemId, priority);
      }
      Double weight = myItemWeights.get(itemId);
      if (weight == null) {
        weight = myPriorityCoefficient * priority;
        myLogger.warn("Cannot find weight of the item " + item + ", use default = " + weight);
        myItemWeights.put(itemId, weight);
      }
    }
  }