From f3a88fdc7d3760e9b33a7597f51b675f71b1c929 Mon Sep 17 00:00:00 2001 From: Amir Mofakhar Date: Wed, 22 Feb 2023 09:22:18 +0000 Subject: [PATCH] [AP-1394] bug fix for graceful exit (#1076) * bug fix for graceful exit * removed unnecessary condition --- pipelinewise/cli/pipelinewise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelinewise/cli/pipelinewise.py b/pipelinewise/cli/pipelinewise.py index 62ad01688..8691c33c5 100644 --- a/pipelinewise/cli/pipelinewise.py +++ b/pipelinewise/cli/pipelinewise.py @@ -1320,7 +1320,7 @@ def stop_tap(self, sig=None, frame=None): # Terminate all the processes in the current process' process group. for child in parent.children(recursive=True): - if os.getpgid(child.pid) == pgid and child.status == 'running': + if os.getpgid(child.pid) == pgid: self.logger.info('Sending SIGTERM to child pid %s...', child.pid) child.terminate() try: