Commit a522c51d authored by 赵威's avatar 赵威

update script

parent 1fc0d16e
......@@ -18,22 +18,22 @@
# nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py f > ~/ctcvr_f.log &
# fi
if ! ps aux | grep src/main_portrait.py\ 8 | grep -v grep
if ! ps aux | grep src/main_portrait.py\ 8\ f | grep -v grep
then
nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 8 f > ~/ctcvr_8.log &
fi
if ! ps aux | grep src/main_portrait.py\ 9 | grep -v grep
if ! ps aux | grep src/main_portrait.py\ 9\ f | grep -v grep
then
nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py 9 f > ~/ctcvr_9.log &
fi
if ! ps aux | grep src/main_portrait.py\ a | grep -v grep
if ! ps aux | grep src/main_portrait.py\ a\ f | grep -v grep
then
nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py a f > ~/ctcvr_a.log &
fi
if ! ps aux | grep src/main_portrait.py\ b | grep -v grep
if ! ps aux | grep src/main_portrait.py\ b\ f | grep -v grep
then
nohup /home/gmuser/.virtualenvs/tf1/bin/python3 /srv/apps/gm_strategy_cvr/src/main_portrait.py b f > ~/ctcvr_b.log &
fi
......@@ -45,13 +45,10 @@ def user_portrait_scan_info(device_dict, diary_dict, tractate_dict, diary_predic
def user_portrait_increment_scan_info(device_dict, diary_dict, tractate_dict, diary_predict_fn, tractate_predict_fn, tail_number):
try:
round = 0
all_count = 0
keys = "doris:user_portrait:tag3:device_id:*"
cur, results = redis_client2.scan(0, keys, 3000)
while cur != 0:
round += 1
print("round: " + str(round))
cur, results = redis_client2.scan(cur, keys, 3000)
for key in results:
key = str(key, "utf-8")
......
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