Re: How to start and stopp threads in Django/Channels while using websockets

2017-10-27 Thread Andrew Godwin
You can't do this from inside Django right now - the background workers were designed to solve this problem. Andrew On Fri, Oct 27, 2017 at 6:26 AM, 'matrix1900' via Django users < django-users@googlegroups.com> wrote: > Hi , > > > in my project, I want to use Django and Web sockets. The Solutio

How to start and stopp threads in Django/Channels while using websockets

2017-10-27 Thread 'matrix1900' via Django users
Hi , in my project, I want to use Django and Web sockets. The Solution is --> Channels. But I have a problem. How can I start and stop an external long running thread from inside Django. I don't want to start an separate worker via console. I want to start it inside Django (Maybe in Consume