def run_set_shards(args): conn = backend.connect() try: set_shards(conn, shards=args.num_shards) except OperationError as e: sys.exit(str(e))
def run_set_shards(args): conn = backend.connect() try: set_shards(conn, shards=args.num_shards) except OperationError as e: sys.exit(str(e))
def run_set_shards(args): conn = backend.connect() try: set_shards(conn, shards=args.num_shards) except DatabaseOpFailedError as e: logger.warn(e)
def run_set_shards(args): conn = backend.connect() try: set_shards(conn, shards=args.num_shards) except OperationError as e: logger.warn(e)