From 8c3c6dae8c21ae58e954b5f07ba3372ae6517389 Mon Sep 17 00:00:00 2001 From: kuizhiqing Date: Mon, 25 Apr 2022 11:45:22 +0800 Subject: [PATCH] rm distri env (#41961) (#42167) --- python/paddle/distributed/launch/context/__init__.py | 1 - python/paddle/distributed/launch/controllers/controller.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/python/paddle/distributed/launch/context/__init__.py b/python/paddle/distributed/launch/context/__init__.py index e03d832767..08c8f0835c 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 9527ae35c4..69b2237f0b 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) -- GitLab