diff --git a/python/paddle/distributed/launch/context/__init__.py b/python/paddle/distributed/launch/context/__init__.py index e03d832767e6fac85c242d6563da363f7cbdd4a3..08c8f0835c5e102218e33f2f004a4c8fe82f15a2 100644 --- a/python/paddle/distributed/launch/context/__init__.py +++ b/python/paddle/distributed/launch/context/__init__.py @@ -51,7 +51,6 @@ class Context(object): legacy_env_list = [ 'DISTRIBUTED_TRAINER_ENDPOINTS', 'PADDLE_ELASTIC_JOB_ID', - 'PADDLE_DISTRI_BACKEND', 'FLAGS_START_PORT', ] diff --git a/python/paddle/distributed/launch/controllers/controller.py b/python/paddle/distributed/launch/controllers/controller.py index 9527ae35c4b6bf852f0eb38bf789e47176a77134..69b2237f0ba7d267c3b297e5afe2fbc69b173869 100644 --- a/python/paddle/distributed/launch/controllers/controller.py +++ b/python/paddle/distributed/launch/controllers/controller.py @@ -128,14 +128,15 @@ class ControllerBase(object): self.ctx.logger.info("Terminating with signal {}".format(sigint)) if hasattr(self, 'sigint'): - time.sleep(5) + self.ctx.logger.info("Force quit in 10 seconds...") + time.sleep(11) sys.exit(sigint) self.sigint = sigint self.ctx.status.done() self.stop(sigint) time.sleep(1) - self.ctx.logger.debug("Exit with signal {}".format(sigint)) + self.ctx.logger.info("Exit with signal {}".format(sigint)) sys.exit(sigint)