work around a memory leak in channels_redis

see: https://github.com/django/channels_redis/issues/212
see: https://github.com/django/channels_redis/pull/219/
This commit is contained in:
Ryan Petrello
2020-07-31 15:37:44 -04:00
parent 35efbb043d
commit e25da217e8
2 changed files with 31 additions and 1 deletions

View File

@@ -916,7 +916,7 @@ ASGI_APPLICATION = "awx.main.routing.application"
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"BACKEND": "awx.main.consumers.ExpiringRedisChannelLayer",
"CONFIG": {
"hosts": [BROKER_URL],
"capacity": 10000,