(self, ids, batch_size=-1)
Terminate instance in the ids list

        :param ids: a list of IDs to be terminated
        :param batch_size: unused, needed for inheritance compatibility
Terminate instance in the ids list
Terminate instance in the ids list
def terminate_instances_by_id(self, ids, batch_size=-1):
        """ Terminate instance in the ids list

        :param ids: a list of IDs to be terminated
        :param batch_size: unused, needed for inheritance compatibility
        """
        for terminate_id in ids:
            instance = self.instances[terminate_id]
            market = instance.market
            del self.instances[terminate_id]
            self.instance_ids_by_market[market].remove(terminate_id)
def terminate_instances_by_id ( self , ids , batch_size = - 1 ) : for terminate_id in ids : instance = self . instances [ terminate_id ] market = instance . market del self . instances [ terminate_id ] self . instance_ids_by_market [ market ] . remove ( terminate_id )