python - Running a subprocess in uwsgi application -


i'm writing django application, needs perform long async tasks. initial idea start subprocess view job, , monitor progress in views.

the idea works fine when application started via manage.py runserver, doesn't when run under uwsgi. child process started, after view returns uwsgi waits child process end, breaks whole idea.

i can see request details in uwsgi log (number of bytes generated, etc), socket isn't closed, browser waits too.

i have seen other alternatives running async tasks, e.g. celery, far i've spent more time trying configure celery i've spent task. if there's other way, i'll happy hear how solved it.

http://uwsgi-docs.readthedocs.org/en/latest/thingstoknow.html

--close-on-exec need


Comments