File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ def read_version():
52
52
"urllib3>=1.21.1,!=1.25,!=1.25.1" ,
53
53
"docker-compose>=1.25.2" ,
54
54
"PyYAML>=5.3, <6" , # PyYAML version has to match docker-compose requirements
55
+ "psutil" ,
55
56
],
56
57
"scipy" : ["scipy>=0.19.0" ],
57
58
}
Original file line number Diff line number Diff line change 31
31
import tempfile
32
32
33
33
from distutils .spawn import find_executable
34
+ from signal import SIGTERM
34
35
from threading import Thread
36
+
37
+ import psutil
35
38
from six .moves .urllib .parse import urlparse
36
39
37
40
import sagemaker
@@ -840,6 +843,8 @@ def run(self):
840
843
841
844
def down (self ):
842
845
"""Placeholder docstring"""
846
+ for process in psutil .Process (self .process .pid ).children ():
847
+ process .send_signal (SIGTERM )
843
848
self .process .terminate ()
844
849
845
850
You can’t perform that action at this time.
0 commit comments