Moves suggestion logic to celery

This commit is contained in:
Mouse Reeve
2021-05-22 15:53:07 -07:00
parent 644e5926db
commit edfc27a3cd
3 changed files with 49 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ class RedisStore(ABC):
pipeline.execute()
def bulk_remove_objects_from_store(self, objs, store):
"""remoev a list of objects from a given store"""
"""remove a list of objects from a given store"""
pipeline = r.pipeline()
for obj in objs[: self.max_length]:
pipeline.zrem(store, -1, obj.id)