Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection <RedisConnection [db:0]> has pending commands, closing it. #574

Closed
Arzemn opened this issue Jun 10, 2022 · 1 comment
Closed

Comments

@Arzemn
Copy link

Arzemn commented Jun 10, 2022

I am getting a d redis bug/issue that i am hoping is not a bug but more in the way i am handling things

this is with aiohttp and aiocache

i am moving our application to a higher level of concurrency..

The issue i am running into is if add simply aiosync.run(func(input)) i get the following error for any touched coroutine with the @cache() setting

Connection <RedisConnection [db:0]> has pending commands, closing it.
Couldn't retrieve data_dict_2408_1, unexpected error

I have tried to overcome this with a wrapper function that gets the cache manually with the cache.get("key") and if not then fallback to the base function but as soon the ttl expires the above error shows up again

@Dreamsorcerer
Copy link
Member

Please reopen if still an issue on master/0.12. Also provide an actual example, as it's not clear to me where the issue lies.

Possibly related to #609 though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants