title: Running a subprocess in uwsgi application
body: <p>I'm writing a Django application, which needs to perform long async tasks. Initial idea was to start a subprocess from the view that does that job, and to monitor the progress in another views.</p>
  
  <p>The idea works fine when application is started via <code>manage.py runserver</code>, but it doesn't when it is run under uwsgi. The child process is started, but after the view returns uwsgi waits for the child process end, which breaks the whole idea. </p>
  
  <p>I can see the request details in the uwsgi log (number of bytes generated, etc), but the socket isn't closed, so the browser waits too.</p>
  
  <p>I have seen other alternatives for running async tasks, e.g. celery, but so far I've spent more time trying to configure celery than I've spent for the task. If there's any other way, I'll be happy to hear how you solved it.</p>