Browse Source

Merge "Enable mutable config in Tricircle"

changes/47/560547/1
Zuul 3 years ago
committed by Gerrit Code Review
parent
commit
c7e0208dd7
2 changed files with 4 additions and 2 deletions
  1. +2
    -1
      tricircle/common/restapp.py
  2. +2
    -1
      tricircle/xjob/xservice.py

+ 2
- 1
tricircle/common/restapp.py 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():


+ 2
- 1
tricircle/xjob/xservice.py 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():


Loading…
Cancel
Save