Merge "Add Goal in BaseStrategy + Goal API reads from DB"
This commit is contained in:
@@ -28,6 +28,7 @@ from oslo_service import service
|
||||
from watcher._i18n import _LI
|
||||
from watcher.common import service as watcher_service
|
||||
from watcher.decision_engine import manager
|
||||
from watcher.decision_engine import sync
|
||||
from watcher import version
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
@@ -41,6 +42,9 @@ def main():
|
||||
LOG.info(_LI('Starting Watcher Decision Engine service in PID %s'),
|
||||
os.getpid())
|
||||
|
||||
syncer = sync.Syncer()
|
||||
syncer.sync()
|
||||
|
||||
de_service = watcher_service.Service(manager.DecisionEngineManager)
|
||||
launcher = service.launch(CONF, de_service)
|
||||
launcher.wait()
|
||||
|
||||
Reference in New Issue
Block a user