Commit 091dd119 authored by 赵威's avatar 赵威

update field

parent b5a63f3c
import datetime
from utils.cache import redis_client2
from utils.cache import redis_client4
from utils.portrait import user_portrait_tag3_get_candidate_unread_list
......@@ -8,13 +8,12 @@ def user_portrait_scan_info():
try:
round = 0
all_count = 0
keys = "doris:user_portrait:tag3:device_id:*"
# keys = "doris:user_portrait:tag3:candidate:diary:device_id:*"
cur, results = redis_client2.scan(0, keys, 3000)
keys = "doris:user_portrait:tag3:candidate:diary:device_id:*"
cur, results = redis_client4.scan(0, keys, 3000)
while cur != 0:
round += 1
print("round: " + str(round))
cur, results = redis_client2.scan(cur, keys, 3000)
cur, results = redis_client4.scan(cur, keys, 3000)
for key in results:
key = str(key, "utf-8")
device_id = key.split(":")[-1]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment