I am using Django SyncConsumer to perform background task using http protocol referring this document Worker and Background Tasks — Channels 4.0.0 documentation. Also, i am sending data from Outside Consumer in Django Channels ( from view )
I have couple of questions.
- While running my worker i am getting below warning UserWarning: async_to_sync was passed a non-async-marked callable return AsyncToSync(
- My worker running fine after that and consumer receiving message but still there no message / channel name is showing in Redis, then how my consumer getting channel details from Channel layer.
- In consumer there will be just complex and time consuming business logic. in this case do i still need to connect, disconnect consumer, and stop consumer.