Details
Description
Address this TODO:
/** * Encapsulate an offer from a host, and the host's maintenance mode. */ class HostOffer { private final Offer offer; // TODO(wfarner): Replace this with HostAttributes for more use of this caching. private final MaintenanceMode mode;
Success here will mean avoiding O (n=num offers) fetching of host attributes associated with offers when scheduling a task.