Graph service stop should return exit code 0
Change-Id: I9591382f57cb751ab6a73358e402b5beea31fcb7 Story: 1770390 Task: 22450
This commit is contained in:
parent
8573746e86
commit
4d686c8a92
@ -14,7 +14,6 @@
|
|||||||
import abc
|
import abc
|
||||||
import cotyledon
|
import cotyledon
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
from six.moves import _thread
|
|
||||||
|
|
||||||
from oslo_concurrency import processutils as ps
|
from oslo_concurrency import processutils as ps
|
||||||
from oslo_log import log
|
from oslo_log import log
|
||||||
@ -184,8 +183,7 @@ class GraphWorkersManager(cotyledon.ServiceManager):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _stop():
|
def _stop():
|
||||||
# send SEGINT (instant exit) instead of SIGTERM
|
raise SystemExit(0)
|
||||||
_thread.interrupt_main()
|
|
||||||
|
|
||||||
|
|
||||||
class GraphCloneWorkerBase(cotyledon.Service):
|
class GraphCloneWorkerBase(cotyledon.Service):
|
||||||
|
Loading…
Reference in New Issue
Block a user