Comments (13)
I'm am also getting this error whenever the app is being redeployed. Is there a cleanup we should do before it or can we just safely ignore the error?
from channels_redis.
According to my Sentry events this "warning" is considered as an error.
level: error
logger: asyncio
from channels_redis.
In case it's relevant: aio-libs-abandoned/aioredis-py#154
from channels_redis.
This should be fixed by 6613baf - would appreciate others confirming this.
from channels_redis.
Looks like it's fixed. The exception is no longer being raised.
Does this commit also fix #71 ? I no longer get the warning mentioned in the linked issue.
from channels_redis.
Update : After downloading the latest commit, I'm having trouble sending group messages. They don't get sent at all now, but they were being sent properly before the commit.
from channels_redis.
Hmm, interesting, the tests for those are passing. Let me investigate interactively.
from channels_redis.
OK, group send/receive/add/discard all appears to work for me. Is there a particular situation you're seeing it not work in? I have tested in particular with https://github.com/andrewgodwin/channels-examples/tree/master/multichat
from channels_redis.
My mistake. After downloading the latest commit, I didn't restart all the processes running the application. Restarted and everything is working fine.
from channels_redis.
Ah, great. I'll consider this fixed then.
from channels_redis.
Hi, I am trying to use channels_redis
(2.3.3) in an external program to communicate with django
. I first tested in the python interpreter, send
works fine, but I got the same error when I exited the interperter if receive
function is used. Here is what I do in the interpreter:
>>> import channels_redis.core
>>> redis_server = channels_redis.core.RedisChannelLayer(hosts = [('127.0.0.1', 6379)])
>>> from asgiref.sync import async_to_sync
>>> async_to_sync(redis_server.send)('test', {'type': 'hello'})
>>> exit()
# Exited normally
>>> import channels_redis
>>> import channels_redis.core
>>> redis_server = channels_redis.core.RedisChannelLayer(hosts = [('127.0.0.1', 6379)])
>>> from asgiref.sync import async_to_sync
>>> async_to_sync(redis_server.send)('test', {'type': 'hello'})
>>> async_to_sync(redis_server.receive)('test')
{'type': 'hello'}
>>> exit()
Task was destroyed but it is pending!
task: <Task pending coro=<RedisChannelLayer._clean_receive_backup() ...
By the way, the communication between them works great, just getting the error message while exiting the program.
from channels_redis.
hello @andrewgodwin I'm facing the same problem with:
"aioredis": "1.3.1"
"asgiref": "3.3.1"
"channels": "2.4.0"
"channels-redis": "3.2.0"
maybe is related to channels version ? I had the same problem with async_to_sync.
from channels_redis.
Encountering this problem as well... Always receive this error after closing a connection in a Django Channels consumer
load-planner-api | Task was destroyed but it is pending!
load-planner-api | task: <Task pending name='Task-8' coro=<RedisConnection._read_data() running at /usr/local/lib/python3.8/site-packages/aioredis/connection.py:186> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7fc0840a3580>()]> cb=[RedisConnection.__init__.<locals>.<lambda>() at /usr/local/lib/python3.8/site-packages/aioredis/connection.py:168]>
from channels_redis.
Related Issues (20)
- Does channels-redis support redis cluster?I meat some problems when I use channels-redis with redis cluster. HOT 2
- Cannot import BACKEND 'channels_redis.RedisPubSubChannelLayer' specified for default HOT 1
- redis-py >=4.4.0 breaking changes HOT 11
- Redis dependency discrepancy HOT 4
- channel_layer.group_add with already existing group removes the group HOT 1
- Reuse redis connection HOT 1
- Group_Send gets indefinitely stuck HOT 3
- TimeoutError with pytest-asyncio when `group_discard` is used HOT 1
- In channels-redis==4.1.0, Cannot import BACKEND 'channels_redis.core.RedisChannelLayer' specified for default #2005 HOT 1
- `RedisChannelLayer.receive()` drops events due to `asyncio.shield()` in redis-py 4.5.4 HOT 10
- Failing test caused other tests to fail with RuntimeError: Event loop is closed on pytest HOT 5
- FYI: New Relic Python instrumentation breaks the PubSub layer with async consumers HOT 1
- Connection is None causing TypeError: object NoneType can't be used in 'await' expression HOT 1
- TypeError: AbstractConnection.__init__() got an unexpected keyword argument 'ssl_cert_reqs' HOT 2
- Inconsistent group_send behavior in RedisChannelLayer when called in consumer disconnect() HOT 1
- Connection reset by peer when upgrading redis-py to v5 HOT 6
- Serverless AWS Redis results in `redis.exceptions.ResponseError: Lua scripts without any input keys are not supported.` HOT 2
- Unable to configure AWS elasticache redis with channel_redis HOT 1
- redis.exceptions.ResponseError: unknown command 'BZPOPMIN'
- support microsoft entra id for authentication with azure cache for redis HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from channels_redis.