def flush_updates(self, gid): """ flushes any updates stuck in the update queue """ destinations = self.get_destinations(gid) self.logger.info('Notifying destinations: {0}'.format(destinations)) for destination in destinations: self.pubsub.broadcast_command( S1.publisher_channel_name(destination), S1.msg_publish(), gid)
def refresh_user_token(self, gid, provider, pid): self.pubsub.broadcast_command(S1.publisher_channel_name(provider), S1.msg_register(), pid)