Exemplo n.º 1
0
def main():
    evoque_service.prepare_service()

    LOG.info(_LI('Starting evoque engine in PID %s') % os.getpid())

    conductor_id = str(uuid.uuid4())

    endpoints = [
        ticket_endpoint.Handler(),
        workflow_endpoint.Handler(),
    ]

    server = rpc_service.Service.create("evoque-engine",
                                        conductor_id, endpoints,
                                        binary='evoque-engine')
    launcher = service.launch(cfg.CONF, server)
    launcher.wait()