提交 8573e8af 编写于 作者: B barrierye

remove redundant code

上级 758da5b3
...@@ -160,14 +160,6 @@ class HDFSMonitor(Monitor): ...@@ -160,14 +160,6 @@ class HDFSMonitor(Monitor):
if os.system(cmd) != 0: if os.system(cmd) != 0:
raise Exception('pull remote dir failed.') raise Exception('pull remote dir failed.')
def _update_local_model(self, local_tmp_path, remote_model_name, local_path,
local_model_name):
tmp_model_path = os.path.join(local_tmp_path, remote_model_name)
local_model_path = os.path.join(local_path, local_model_name)
cmd = 'cp -r {}/* {}'.format(tmp_model_path, local_model_path)
if os.system(cmd) != 0:
raise Exception('pull remote dir failed.')
class FTPMonitor(Monitor): class FTPMonitor(Monitor):
''' FTP Monitor. ''' ''' FTP Monitor. '''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册