def run_executor(): arg_parser = ArgumentParser(description=DESCRIPTION) arg_parser.parse_args() ensure_mesos_libs() log.info("Starting LWR executor") driver = MesosExecutorDriver(LwrExecutor()) exit_code = 0 if not driver.run() == mesos_pb2.DRIVER_STOPPED: exit_code = 1 return exit_code
def main(): ensure_mesos_libs() arg_parser = ArgumentParser(description=DESCRIPTION) arg_parser.add_argument("--master", default=None, required=True) LwrManagerConfigBuilder.populate_options(arg_parser) args = arg_parser.parse_args() config_builder = LwrManagerConfigBuilder(args) config_builder.setup_logging() config = config_builder.load() run(master=args.master, manager_options=config_builder.to_dict(), config=config)
def main(): ensure_mesos_libs() arg_parser = ArgumentParser(description=DESCRIPTION, ) arg_parser.add_argument("--master", default=None, required=True) LwrManagerConfigBuilder.populate_options(arg_parser) args = arg_parser.parse_args() config_builder = LwrManagerConfigBuilder(args) config_builder.setup_logging() config = config_builder.load() run(master=args.master, manager_options=config_builder.to_dict(), config=config)