(self)
return sum(group.target_capacity for group in non_stale_groups)
The target capacity is the *desired* weighted capacity for the given Mesos cluster pool.  There is no
        guarantee that the actual capacity will equal the target capacity.
The target capacity is the *desired* weighted capacity for the given Mesos cluster pool.  There is no
        guarantee that the actual capacity will equal the target capacity.
The target capacity is the * desired * weighted capacity for the given Mesos cluster pool . There is no guarantee that the actual capacity will equal the target capacity .
def target_capacity(self) -> float:
        """ The target capacity is the *desired* weighted capacity for the given Mesos cluster pool.  There is no
        guarantee that the actual capacity will equal the target capacity.
        """
        if not self.resource_groups:
            raise NoResourceGroupsFoundError()

        non_stale_groups = [group for group in self.resource_groups.values() if not group.is_stale]

        if not non_stale_groups:
            raise AllResourceGroupsAreStaleError()
        return sum(group.target_capacity for group in non_stale_groups)
def target_capacity ( self ) -> float : if not self . resource_groups : raise NoResourceGroupsFoundError ( ) non_stale_groups = [ group for group in self . resource_groups . values ( ) if not group . is_stale ] if not non_stale_groups : raise AllResourceGroupsAreStaleError ( ) return sum ( group . target_capacity for group in non_stale_groups )