szymon_dybczak
Esteemed Contributor III

Hi @slakshmanan ,

To stop or interrupt a running notebook, select the interrupt button in the notebook toolbar. You can also select Run > Interrupt execution, or use the keyboard shortcut I I.

https://learn.microsoft.com/en-us/azure/databricks/notebooks/run-notebook

And if you're going to use SQL warehouse then to terminate a long-running query started by you or another user:

  1. View query history.

  2. Click the name of a query.

  3. Next to Status, click Cancel.

https://docs.databricks.com/en/sql/user/queries/query-history.html#terminate-an-executing-query