Skip to content

Commit f3a88fd

Browse files
authored
[AP-1394] bug fix for graceful exit (#1076)
* bug fix for graceful exit * removed unnecessary condition
1 parent 85a896d commit f3a88fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipelinewise/cli/pipelinewise.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ def stop_tap(self, sig=None, frame=None):
13201320

13211321
# Terminate all the processes in the current process' process group.
13221322
for child in parent.children(recursive=True):
1323-
if os.getpgid(child.pid) == pgid and child.status == 'running':
1323+
if os.getpgid(child.pid) == pgid:
13241324
self.logger.info('Sending SIGTERM to child pid %s...', child.pid)
13251325
child.terminate()
13261326
try:

0 commit comments

Comments
 (0)