You’re absolutely right, using different prefix solves the problem. asgi_redis seems to be ignoring
my connection_kwargs where I set the db.
Connection_kwargs should be set like this, right?
REDIS = {
"hosts": [(os.environ.get('REDIS_HOST'), 6379)],
"connection_kwargs": {
"db": os.environ.get('REDIS_DB'),
}
}
CHANNEL_LAYERS = {
"default": {
"BACKEND": "asgi_redis.RedisChannelLayer",
"ROUTING": "birdview_api.channels.routing.channel_routing",
"CONFIG": REDIS,
},
}
I double checked the env vars and also source code of asgi_redis, but still no luck.
Anyway, this question was already aswered. Different isntances need to have different prefix or db.
Thank you Andrew! going to update to channels 2.x soon
Cheers,