I have a situation where a pymysql query may take longer than the amount of time allowed. Ideally, the call aborts with an exception after a set number of seconds or mills, so it can be reported and move forward.
Is there a way to limit the amount of time a query can execute for a given session/connection?