Commit ba8c03a2 by BoxuanXu

fix proto's bug

1 parent a1bbf95f
...@@ -35,7 +35,7 @@ stbf_stcnf("/etc/fdfs/client.conf") ...@@ -35,7 +35,7 @@ stbf_stcnf("/etc/fdfs/client.conf")
download_path="." download_path="."
#be userd to jenkins #be userd to jenkins
host = 'http://192.168.1.242:8080/' host = 'http://192.168.1.23:8080/'
modelid = "" modelid = ""
output_layer = "" output_layer = ""
...@@ -133,7 +133,6 @@ def get_path_from_db(modelid,seetanet_model): ...@@ -133,7 +133,6 @@ def get_path_from_db(modelid,seetanet_model):
else: else:
err_msg = "download file failed" err_msg = "download file failed"
return None,None,err_msg return None,None,err_msg
#post return progress #post return progress
GP.set_progress_var(10) GP.set_progress_var(10)
GP.Post_return() GP.Post_return()
...@@ -243,12 +242,14 @@ def get_info_from_queue(arg): ...@@ -243,12 +242,14 @@ def get_info_from_queue(arg):
return_flag = "error" return_flag = "error"
finally: finally:
GP.set_post_type_var(return_flag) GP.set_post_type_var(return_flag)
GP.set_err_msg_var(err_msg)
if return_flag == "finish": if return_flag == "finish":
err_msg = ""
GP.set_err_msg_var(err_msg)
GP.set_progress_var(100) GP.set_progress_var(100)
#post_return = { "posttype": return_flag, "progress" : 100, "pool_id": pool_id, "err_msg":err_msg } #post_return = { "posttype": return_flag, "progress" : 100, "pool_id": pool_id, "err_msg":err_msg }
else: else:
GP.set_err_msg_var(err_msg)
GP.set_progress_var(0) GP.set_progress_var(0)
#post_return = { "posttype": return_flag, "progress" : 0, "pool_id": pool_id, "err_msg":err_msg } #post_return = { "posttype": return_flag, "progress" : 0, "pool_id": pool_id, "err_msg":err_msg }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!