未验证 提交 8c3c6dae 编写于 作者: K kuizhiqing 提交者: GitHub

rm distri env (#41961) (#42167)

上级 0d537003
...@@ -51,7 +51,6 @@ class Context(object): ...@@ -51,7 +51,6 @@ class Context(object):
legacy_env_list = [ legacy_env_list = [
'DISTRIBUTED_TRAINER_ENDPOINTS', 'DISTRIBUTED_TRAINER_ENDPOINTS',
'PADDLE_ELASTIC_JOB_ID', 'PADDLE_ELASTIC_JOB_ID',
'PADDLE_DISTRI_BACKEND',
'FLAGS_START_PORT', 'FLAGS_START_PORT',
] ]
......
...@@ -128,14 +128,15 @@ class ControllerBase(object): ...@@ -128,14 +128,15 @@ class ControllerBase(object):
self.ctx.logger.info("Terminating with signal {}".format(sigint)) self.ctx.logger.info("Terminating with signal {}".format(sigint))
if hasattr(self, 'sigint'): if hasattr(self, 'sigint'):
time.sleep(5) self.ctx.logger.info("Force quit in 10 seconds...")
time.sleep(11)
sys.exit(sigint) sys.exit(sigint)
self.sigint = sigint self.sigint = sigint
self.ctx.status.done() self.ctx.status.done()
self.stop(sigint) self.stop(sigint)
time.sleep(1) time.sleep(1)
self.ctx.logger.debug("Exit with signal {}".format(sigint)) self.ctx.logger.info("Exit with signal {}".format(sigint))
sys.exit(sigint) sys.exit(sigint)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册