channels icon indicating copy to clipboard operation
channels copied to clipboard

took too long to shut down and was killed

Open djdjdjdjsosososockckckck opened this issue 3 years ago • 0 comments

I know, I know, This question is too common but That's not kind of that.

The problem is, Whenever I'm trying to login to django admin, There is very long loading and nginx spit 504 error! and command line said, 2022-08-16 03:25:25,053 WARNING Application instance <Task pending name='Task-1' coro=<ProtocolTypeRouter.__call__() running at /usr/local/lib/python3.10/site-packages/channels/routing.py:71> wait_for=<Future pending cb=[_chain_future.<locals>._call_check_cancel() at /usr/local/lib/python3.10/asyncio/futures.py:384, Task.task_wakeup()]>> for connection <WebRequest at 0x7f8d7e7d3190 method=POST uri=/admin/login/?next=/admin/ clientproto=HTTP/1.0> took too long to shut down and was killed.

I have only one consumer about chatting and I even added raise StopConsumer()

What should I do further? Please help...