def stop(self, env, upgrade_type=None): import params env.set_params(params) flume(action='stop') if upgrade_type is not None and params.upgrade_direction == Direction.UPGRADE: flume_upgrade.post_stop_backup()
def stop(self, env, rolling_restart=False): import params env.set_params(params) flume(action='stop') # only backup data on upgrade if rolling_restart and params.upgrade_direction == Direction.UPGRADE: flume_upgrade.post_stop_backup()
def stop(self, env, rolling_restart=False): import params env.set_params(params) flume(action='stop') if rolling_restart: flume_upgrade.post_stop_backup()