From 4d686c8a923abb56066faafa0c6aec97ce34f59b Mon Sep 17 00:00:00 2001 From: Idan Hefetz Date: Sun, 4 Nov 2018 12:35:53 +0000 Subject: [PATCH] Graph service stop should return exit code 0 Change-Id: I9591382f57cb751ab6a73358e402b5beea31fcb7 Story: 1770390 Task: 22450 --- vitrage/entity_graph/workers.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vitrage/entity_graph/workers.py b/vitrage/entity_graph/workers.py index 51b03a611..4f947e8d2 100644 --- a/vitrage/entity_graph/workers.py +++ b/vitrage/entity_graph/workers.py @@ -14,7 +14,6 @@ import abc import cotyledon import multiprocessing -from six.moves import _thread from oslo_concurrency import processutils as ps from oslo_log import log @@ -184,8 +183,7 @@ class GraphWorkersManager(cotyledon.ServiceManager): @staticmethod def _stop(): - # send SEGINT (instant exit) instead of SIGTERM - _thread.interrupt_main() + raise SystemExit(0) class GraphCloneWorkerBase(cotyledon.Service):