I\'m trying to enforce a time limit on queries in python MySQLDB. I have a situation where I have no control over the queries, but need to ensure that they do not run over a
Why do I not get the signal until after execute finishes?
The process waiting for network I/O is in an uninterruptible state (UNIX thing, not related to Python or MySQL). It gets the signal after the system call finishes (probably as EINTR
error code, although I am not sure).
Is there another reliable way to limit query execution time?
I think that it is usually done by an external tool like mkill
that monitors MySQL for long running queries and kills them.