Skip to content

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

@Arzemn

Description

@Arzemn

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

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