Merge "Propoerly call oslo's Service stop and wait"

This commit is contained in:
Jenkins 2016-02-29 10:29:23 +00:00 committed by Gerrit Code Review
commit 4d093d4eca

View File

@ -283,7 +283,7 @@ class Service(service.Service):
x.stop()
except Exception:
self.timers_skip.append(x)
super(Service, self).stop()
super(Service, self).stop(graceful=True)
def wait(self):
skip = getattr(self, 'timers_skip', [])
@ -295,6 +295,7 @@ class Service(service.Service):
pass
if self.rpcserver:
self.rpcserver.wait()
super(Service, self).wait()
def periodic_tasks(self, raise_on_error=False):
"""Tasks to be run at a periodic interval."""