0

I can create an async view and inquire as to whether the method thinks it's a coroutine, and it is.

However, looking at the stack it looks like my view is being called by asgiref's AsyncToSync.

I am using Gunicorn with Uvicorn worker and an asgi.py script that starts with:

from channels.routing import get_default_application
channel_layer = get_default_application

Plus, I am trying to discover if any of my middleware is running sync or even with a (forced) sync middleware I am not hitting (logger.debug('Synchronous %s adapted.', name))

Makes no sense.

LiteWait
  • 584
  • 4
  • 21
  • 42

0 Answers0