zhangbo 1 年之前
父节点
当前提交
c242bec8f1
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      zhangbo/06_update_everyday_feature.sh
  2. 3 2
      zhangbo/utils.py

+ 1 - 1
zhangbo/06_update_everyday_feature.sh

@@ -76,4 +76,4 @@ else
     echo "user写入redis执行成功"
 fi
 
-#nohup sh 06_update_everyday_feature.sh > p.log 2>&1 &
+#nohup sh 06_update_everyday_feature.sh > p2.log 2>&1 &

+ 3 - 2
zhangbo/utils.py

@@ -45,6 +45,7 @@ def check_origin_hive(args):
         exit(1)
     else:
         print("0")
+
 def check_item_hive(args):
     project = "loghubods"
     table = "alg_recsys_video_info"
@@ -74,9 +75,9 @@ if __name__ == '__main__':
     args = parser.parse_args()
     if args.excute_program == "check_origin_hive":
         check_origin_hive(args)
-    if args.excute_program == "check_item_hive":
+    elif args.excute_program == "check_item_hive":
         check_item_hive(args)
-    if args.excute_program == "check_user_hive":
+    elif args.excute_program == "check_user_hive":
         check_user_hive(args)
     else:
         print("无合法参数,验证失败。")