redis/redis-py · error · RedisClusterException
ERROR: Calling pipelined function {name} is blocked when run
Error message
ERROR: Calling pipelined function {name} is blocked when running redis in cluster mode... What it means
Error "ERROR: Calling pipelined function {name} is blocked when running redis in cluster mode..." thrown in redis/redis-py.
Source
Thrown at redis/cluster.py:3759
def script_load_for_pipeline(self, *args, **kwargs):
self._execution_strategy.script_load_for_pipeline(*args, **kwargs)
def delete(self, *names):
self._execution_strategy.delete(*names)
def unlink(self, *names):
self._execution_strategy.unlink(*names)
def block_pipeline_command(name: str) -> Callable[..., Any]:
"""
Prints error because some pipelined commands should
be blocked when running in cluster-mode
"""
def inner(*args, **kwargs):
raise RedisClusterException(
f"ERROR: Calling pipelined function {name} is blocked "
f"when running redis in cluster mode..."
)
return inner
# Blocked pipeline commands
PIPELINE_BLOCKED_COMMANDS = (
"BGREWRITEAOF",
"BGSAVE",
"BITOP",
"BRPOPLPUSH",
"CLIENT GETNAME",
"CLIENT KILL",
"CLIENT LIST",
"CLIENT SETNAME",
"CLIENT",View on GitHub (pinned to da03cdc7e8)
When it happens
Trigger: Thrown at redis/cluster.py:3759 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of redis/redis-py@da03cdc7e8 (2026-08-04).
Data as JSON: /data/errors/e7f0904d20e6e089.json.
Report an issue: GitHub.