Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Conversation

@hramezani
Copy link
Contributor

@hramezani hramezani commented Feb 27, 2020

Based on @tomchristie comment.

I have added await self._wait_for_channel(), to wait for the channel.

await self._pub_conn.publish(channel, message)
await self._pub_conn.publish_json(channel, message)

async def _wait_for_channel(self) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would try to find a way to avoid this. With async-redis it was possible, so I guess it should be possible to do it with aioredis, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @woile. It would be good to find a solution because we have the same problem in redis-stream backend.

Maybe we need to change the way of subscription on the base class. what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have moved listener_task creation from connect to subscribe. now we don't need the _wait_for_channel function.

@hramezani hramezani force-pushed the change_redis_backend branch from cac3b42 to dbef3c3 Compare March 8, 2020 20:05
@hramezani hramezani changed the title Changed redis backend to use asyncio-redis instead of asyncio_redis. Changed redis backend to use aioredis instead of asyncio_redis. Aug 28, 2020
@JaeungJayJang
Copy link

Hello, Thank you for this great app. I see that the backend still relies on asyncio_redis, but it seems that this package is no longer maintained and aioredis is also became part of redis-py as well. I am wondering if there's any plan to replace asyncio_redis to redis-py by any chance.

Thank you!

@alex-oleshkevich
Copy link
Contributor

Resolved in #111

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants