未验证 提交 7fc0fed8 编写于 作者: C caozhou 提交者: GitHub

enhance etcd stability (#55499)

上级 1dcc3bf7
......@@ -252,7 +252,14 @@ class ETCDMaster(Master):
self.job_prefix = f'/paddle/{job_id}'
self.heartbeat_prefix = f'{self.job_prefix}/heartbeat'
if self.ctx.is_auto_tuner_mode():
delete_success = False
while not delete_success:
try:
self.client.delete_prefix(self.job_prefix)
delete_success = True
except:
time.sleep(1)
lease = self.client.lease(ttl)
# self.client.delete_prefix(self.job_prefix)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册