Merge "Enable mutable config in Tricircle"
This commit is contained in:
commit
c7e0208dd7
|
@ -45,7 +45,8 @@ def serve(api_service, conf, workers=1):
|
||||||
if _launcher:
|
if _launcher:
|
||||||
raise RuntimeError(_('serve() can only be called once'))
|
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():
|
def wait():
|
||||||
|
|
|
@ -245,7 +245,8 @@ def serve(xservice, workers=1):
|
||||||
if _launcher:
|
if _launcher:
|
||||||
raise RuntimeError(_('serve() can only be called once'))
|
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():
|
def wait():
|
||||||
|
|
Loading…
Reference in New Issue