Stopping long-running requests in Pylons

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-04-25T18:27:59Z Indexed on 2010/04/25 18:33 UTC
Read the original article Hit count: 194

Filed under:
|

I'm working on an application using Pylons and I was wondering if there was a way to make sure it doesn't spend way too much time handling one request. That is, I would like to find a way to put a timer on each request such that when too much time elapses, the request just stops (and possibly returns some kind of error).

The application is supposed to allow users to run some complex calculations but I would like to make sure that if a calculation starts taking too much time, we stop it to allow other calculations to take place.

© Stack Overflow or respective owner

Related posts about python

Related posts about pylons