Unverified Commit 61b1d2f6 authored by Russell Bryant's avatar Russell Bryant Committed by GitHub
Browse files

[Core] v1: Use atexit to handle engine core client shutdown (#11076)


Signed-off-by: default avatarRussell Bryant <rbryant@redhat.com>
parent 9974fca0
import atexit
import multiprocessing
from typing import List, Union
......@@ -157,6 +158,7 @@ class MPClient(EngineCoreClient):
should_shutdown=self.should_shutdown,
**kwargs,
)
atexit.register(self.shutdown)
def shutdown(self):
# Send shutdown signal to background process.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment