As an admin of a Databricks SQL environment, can I cancel long running queries?

User16826992666
Databricks Employee
Databricks Employee

I don't want one long or poorly written query to block my entire SQL endpoint for everyone else. Do I have the ability to kill specific queries?

Digan_Parikh
Databricks Employee
Databricks Employee

You can go to the query dashboard, find the query and stop the query. Another way is to restart the endpoint.

View solution in original post

DevB
New Contributor II

Is there a way to stop the session programmatically? like "kill session_id" or something similar in API?