Begin switching away from Redis

This commit is contained in:
2022-10-21 11:14:51 +01:00
parent 7482064aee
commit ab5e85c5c6
3 changed files with 23 additions and 47 deletions

View File

@@ -36,7 +36,7 @@ class Ingest(object):
items = []
# for source in SOURCES:
# key = f"{KEYPREFIX}{source}"
chunk = await db.ar.spop(KEYNAME, CHUNK_SIZE)
chunk = await db.ar.zpop(KEYNAME, CHUNK_SIZE)
if not chunk:
return
for item in chunk: