title: Making tornado to serve a request on a separate thread
body: <p>I have a webservice written in <strong>Flask</strong>, wrapped in a <code>WSGIContainer</code> and served by <strong>Tornado</strong> by using its <code>FallbackHandler</code> mechanism. One of my <strong>routes</strong> in the flask webservice runs a very long operation (takes around 5 mins to complete), and when this route is triggered, every other call to any route is blocked until the operation completes. How do I get around this issue?</p>
  
  <p>Here is how my <strong>Flask</strong> application is served using <strong>Tornado</strong>:</p>
  
  <pre><code>parse_command_line()
  
      frontend_path = os.path.join(os.path.dirname(__file__),"..","webapp")
  
      rest_app = WSGIContainer(app)
      tornado_app = Application(
          [
              (r"/api/(.*)", FallbackHandler, dict(fallback=rest_app)),
              (r"/app/(.*)", StaticFileHandler, dict(path=frontend_path))
          ]
      )
  </code></pre>