title: Override default harakiri duration of uwsgi in Flask/Python
body: <p>For most requests/routes a standard harakiri value of 15s or 30s will be fine.</p>
  
  <p>But a few endpoints are long running (such as when generating reports) and I want the client to wait synchronously while they are prepared and returned.</p>
  
  <p>Can I set a default harakiri value in uwsgi.ini and then override it in flask/python, either in code or by using a decorator in flask?</p>
  
  <p>A previous answer shows how to do this using uWSGI config/routes but I would prefer to keep these special cases separate from the standard uWSGI timeout configuration. <a href="https://stackoverflow.com/questions/27758999/uwsgi-different-harakiri-timeout-for-django-admin">uWSGI - Different Harakiri Timeout for Django Admin</a></p>
  
  <p>Any pointers?</p>