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():
5252 "urllib3>=1.21.1,!=1.25,!=1.25.1" ,
5353 "docker-compose>=1.25.2" ,
5454 "PyYAML>=5.3, <6" , # PyYAML version has to match docker-compose requirements
55+ "psutil" ,
5556 ],
5657 "scipy" : ["scipy>=0.19.0" ],
5758}
Original file line number Diff line number Diff line change 3131import tempfile
3232
3333from distutils .spawn import find_executable
34+ from signal import SIGTERM
3435from threading import Thread
36+
37+ import psutil
3538from six .moves .urllib .parse import urlparse
3639
3740import sagemaker
@@ -840,6 +843,8 @@ def run(self):
840843
841844 def down (self ):
842845 """Placeholder docstring"""
846+ for process in psutil .Process (self .process .pid ).children ():
847+ process .send_signal (SIGTERM )
843848 self .process .terminate ()
844849
845850
You can’t perform that action at this time.
0 commit comments