Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

No way to execute an arbitrary command on a pipeline #715

Closed
yurymann opened this issue Mar 12, 2020 · 4 comments
Closed

No way to execute an arbitrary command on a pipeline #715

yurymann opened this issue Mar 12, 2020 · 4 comments
Labels

Comments

@yurymann
Copy link

Pipeline.exectute() shadows ConnectionsPool.execute() and RedisConnection.execute().
As the result, one cannot execute arbitrary commands in a pipeline.
I use Redisearch module and need to execute multiple commands like "FT.DEL" in a row, but cannot use pipelining.

In redis-py, the method to execute a command is called Redis.execute_command(), which ensures there is no clash.

Happy to be told that there is a way of doing this in aioredis.

Thanks

@gdassori
Copy link

gdassori commented May 6, 2020

Bump? Any way to do this ?

@yurymann
Copy link
Author

@gdassori I worked it around by putting my pipelines into a LUA script which can be executed in a pipeline. You could probably monkey-patch it, I didn't try.

It's pretty sad that this project, being the best maintained asyncio redis client, has been stale since December 2019.

@seandstewart seandstewart added this to To do in Resuscitation via automation Nov 30, 2020
@seandstewart
Copy link
Collaborator

@yurymann @gdassori

Maintenance for this project is back on! I have limited time but am working to get tickets like these triaged and merged in. See #822.

The next release will be a breaking change, so I'm open to someone doing as @yurymann said and renaming the Connection/ConnectionPool method to execute_command.

@seandstewart
Copy link
Collaborator

This has been resolved as of #891.

Resuscitation automation moved this from To do to Done Mar 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
No open projects
Development

No branches or pull requests

3 participants