I have form where user enter sql query and I am running query using pd.read_sql and showing results of it, but if user accidently add long running quqery than I want to stop running pd.read_sql query.
I tried to run it thread and stop thread but pd.read_sql keep running in backend it only stops if I stop running server is there a way to stop it?
New contributor
Dimpal Rana is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.