Esempio n. 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)
Esempio n. 2
0
def update_cell(self, shard_id=None):
    station.CellUpdater(self, shard_id=shard_id)()
Esempio n. 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)