Exemple #1
0
def update_cell(self, batch=1000, shard_id=None):
    with self.redis_pipeline() as pipe:
        with self.db_session() as session:
            updater = station.CellUpdater(self,
                                          session,
                                          pipe,
                                          shard_id=shard_id)
            if shard_id is None:
                updater.shard_queues(batch=batch)
            else:
                updater(batch=batch)
Exemple #2
0
def update_cell(self, shard_id=None):
    station.CellUpdater(self, shard_id=shard_id)()
Exemple #3
0
def update_cell(self, batch=1000, shard_id=None):
    with self.redis_pipeline() as pipe:
        with self.db_session() as session:
            station.CellUpdater(self, session, pipe,
                                shard_id=shard_id)(batch=batch)