Skip to content

Commit cb1e153

Browse files
authored
Fix zombie process exception (#133)
* Fix zombie process exception * Fix flake8 checks * Retrigger tests * Pin psutil version to 5.9.5 * Unpin psutil version and add sleep in local integration tests
1 parent 8644af6 commit cb1e153

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/sagemaker_inference/model_server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ def _retrieve_mms_server_process():
273273
mms_server_processes = list()
274274

275275
for process in psutil.process_iter():
276+
if process.status() == psutil.STATUS_ZOMBIE:
277+
continue
276278
if MMS_NAMESPACE in process.cmdline():
277279
mms_server_processes.append(process)
278280

test/integration/local/test_dummy_multi_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def container():
4646
except: # noqa: E722
4747
attempts += 1
4848
pass
49+
time.sleep(60)
4950
yield proc.pid
5051
finally:
5152
subprocess.check_call("docker rm -f sagemaker-inference-toolkit-test".split())

test/integration/local/test_mxnet_multi_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def container():
4646
except: # noqa: E722
4747
attempts += 1
4848
pass
49+
time.sleep(60)
4950
yield proc.pid
5051
finally:
5152
subprocess.check_call("docker rm -f sagemaker-inference-toolkit-test".split())

0 commit comments

Comments
 (0)