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