What is the proper way to thread tornado+flask app?
Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping
--
Chapters
00:00 Question
00:46 Accepted answer (Score 0)
01:17 Thank you
--
Full question
https://stackoverflow.com/questions/6267...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #web #flask #tornado
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Future Grid Looping
--
Chapters
00:00 Question
00:46 Accepted answer (Score 0)
01:17 Thank you
--
Full question
https://stackoverflow.com/questions/6267...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #web #flask #tornado
#avk47
ACCEPTED ANSWER
Score 0
Tornado's WSGIContainer does not support threads, which means that it is also not suitable for most production usage (the rest of Tornado is, just not WSGIContainer). It's only a good idea to use Tornado's WSGIContainer when it's important to serve both Tornado RequestHandlers and WSGI applications in the same process. Otherwise, I recommend gunicorn or uwsgi.