Merge "Keep service threadgroups alive on exception"

This commit is contained in:
Zuul 2020-04-08 01:52:01 +00:00 committed by Gerrit Code Review
commit b533c24fc4
1 changed files with 5 additions and 1 deletions

View File

@ -74,7 +74,11 @@ class ManagerService(service_utils.RPCServer):
def start(self):
super(ManagerService, self).start()
self.tg.add_timer(EVENT_INTERVAL, self._event)
# NOTE(jakecoll): stop_on_exception=False was added because database
# exceptions would prevent threads from being scheduled again.
# TODO(jakecoll): Find a way to test this.
self.tg.add_timer_args(EVENT_INTERVAL, self._event,
stop_on_exception=False)
for m in self.monitors:
m.start_monitoring()