Skip to content

Commit

Permalink
[AP-1394] bug fix for graceful exit (#1076)
Browse files Browse the repository at this point in the history
* bug fix for graceful exit

* removed unnecessary condition
  • Loading branch information
amofakhar authored Feb 22, 2023
1 parent 85a896d commit f3a88fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipelinewise/cli/pipelinewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f3a88fd

Please sign in to comment.