Skip to content Skip to sidebar Skip to footer

How To Stop Django Thread

I have a website that uses Jquery and Python. I have an Ajax Request that performs a python function. Inside the Python Function there is an interface with Linux that executes a C

Solution 1:

Seems like you need an asynchronous execution for your "blocking" C++ Lib. There are several approaches for this kind of problems but IMO threading is deferentially the wrong one...

One approach is to use an asynchronous web server like Tornado to handle asynchronous requests. The other (and the one I like more) is to use Celery.

Post a Comment for "How To Stop Django Thread"