Merge "Enable mutable config in Tricircle"

This commit is contained in:
Zuul 2018-04-03 10:39:56 +00:00 committed by Gerrit Code Review
commit c7e0208dd7
2 changed files with 4 additions and 2 deletions

View File

@ -45,7 +45,8 @@ def serve(api_service, conf, workers=1):
if _launcher:
raise RuntimeError(_('serve() can only be called once'))
_launcher = service.launch(conf, api_service, workers=workers)
_launcher = service.ProcessLauncher(conf, restart_method='mutate')
_launcher.launch_service(api_service, workers=workers)
def wait():

View File

@ -245,7 +245,8 @@ def serve(xservice, workers=1):
if _launcher:
raise RuntimeError(_('serve() can only be called once'))
_launcher = srv.launch(CONF, xservice, workers=workers)
_launcher = srv.ProcessLauncher(CONF, restart_method='mutate')
_launcher.launch_service(xservice, workers=workers)
def wait():