Skip to content

Calling pipelined function evalsha is blocked when running redis in cluster mode #2914

Description

@zdc13

Version: 5.0.0

Platform: Python 3.10 on MacOS 13

Description:

The following code does not work:

client = redis.RedisCluster()
pipe = client.pipeline()
pipe.evalsha(sha, 0)
pipe.execute()

redis.exceptions.RedisClusterException: ERROR: Calling pipelined function evalsha is blocked when running redis in cluster mode...

Why is this disallowed? AFAICT this should work fine if the scripts are loaded. It's disallowed in redis/cluster.py in PIPELINE_BLOCKED_COMMANDS, but no reason is documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions