def METHOD_NAME(self, bsids):
    yield self._updateCachedUpstreamBuilds()
    old = set(self._cached_upstream_bsids)
    self._cached_upstream_bsids = list(old - set(bsids))
    yield self.master.db.state.setState(self.objectid,
                                        'upstream_bsids', self._cached_upstream_bsids)