zhangbo 11 månader sedan
förälder
incheckning
f0d0236a8f
1 ändrade filer med 4 tillägg och 0 borttagningar
  1. 4 0
      write_redis/alg_recsys_recall_01_tag2vids_redis_task.sh

+ 4 - 0
write_redis/alg_recsys_recall_01_tag2vids_redis_task.sh

@@ -13,6 +13,10 @@ if [[ $ROV_OFFLINE_ENV == 'test' ]]; then
   /root/anaconda3/bin/python alg_recsys_recall_01_tag2vids_redis.py $cur_time $cur_h
 elif [[ $ROV_OFFLINE_ENV == 'pro' ]]; then
   /root/anaconda3/bin/python alg_recsys_recall_01_tag2vids_redis.py $cur_time $cur_h
+  if [ $? -ne 0 ]; then
+    msg="写redis的任务,tag到vids的召回,alg_recsys_recall_01_tag2vids_redis.py:${cur_time}-${cur_h}-something-is-wrong."
+    /root/anaconda3/bin/python utils_monitor.py ${msg}
+  fi
 fi
 echo "结束执行时间:{$(date "+%Y-%m-%d %H:%M:%S")}"
 echo "all done"