summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/heat-engine7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/heat-engine b/bin/heat-engine
index 2c4354c41..fbdcd1b38 100755
--- a/bin/heat-engine
+++ b/bin/heat-engine
@@ -55,7 +55,8 @@ if __name__ == '__main__':
srv = engine.EngineService(cfg.CONF.host, rpc_api.ENGINE_TOPIC)
launcher = service.launch(srv, workers=cfg.CONF.num_engine_workers)
- # We create the periodic tasks here, which mean they are created
- # only in the parent process when num_engine_workers>1 is specified
- srv.create_periodic_tasks()
+ if cfg.CONF.enable_cloud_watch_lite:
+ # We create the periodic tasks here, which mean they are created
+ # only in the parent process when num_engine_workers>1 is specified
+ srv.create_periodic_tasks()
launcher.wait()