|
@@ -14,6 +14,8 @@ mkdir -p ./data/
|
|
|
python extract_share_log.py ${last7day} ${nowday}
|
|
|
if [ $? -ne 0 ];
|
|
|
then
|
|
|
+ msg = "[ERROR] simrecall extract_share_log"
|
|
|
+ sh sendmsg.sh $nowday $msg
|
|
|
echo "[ERROR] echo 'extract_share_log"
|
|
|
exit 255
|
|
|
fi
|
|
@@ -21,9 +23,19 @@ fi
|
|
|
#2. cal i2i result
|
|
|
python calI2I.py ${nowday}
|
|
|
then
|
|
|
- echo "[ERROR] echo 'calI2I"
|
|
|
- exit 255
|
|
|
+ msg = "[ERROR] simrecall calI2I.py"
|
|
|
+ sh sendmsg.sh $nowday $msg
|
|
|
+ echo $msg
|
|
|
+ exit -1
|
|
|
fi
|
|
|
|
|
|
#3.import res
|
|
|
python import_redist.py "./data/rec_result_"${nowday}".json"
|
|
|
+if [ $? -ne 0 ];
|
|
|
+then
|
|
|
+ msg = "[ERROR] simhot recall import_redist.py"
|
|
|
+ sh sendmsg.sh $nowday $msg
|
|
|
+ echo $msg
|
|
|
+ exit -1
|
|
|
+fi
|
|
|
+echo "finish sorted"
|