Ver código fonte

增加刷新

李莎 2 anos atrás
pai
commit
41f4e68dbd
1 arquivos alterados com 5 adições e 0 exclusões
  1. 5 0
      physical_world_exporter/start-linux.py

+ 5 - 0
physical_world_exporter/start-linux.py

@@ -92,5 +92,10 @@ if status == 0:
             print("%s写入完成"%hbasetable)
         else:
             print("检查%s导出文件数据,可能不是最新数据"%file)
+    print("数据写入完成")
+    os.system("apt-get update&&apt -y install curl")
+    os.system("curl http://data-platform-3:80/mng/clear_cache?secret=A123456")
+    os.system("curl http://sagacloud-object-service:80/object/sync/AllData?projectId=Pj3301100002")
+    print("数据刷新完成")
 else:
     print("执行java程序失败")