Skip to content

Commit 230de28

Browse files
update title style
1 parent 4dba84f commit 230de28

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/synapse-analytics/spark/microsoft-spark-utilities.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,10 @@ mssparkutils.runtime.context
11251125
```
11261126
::: zone-end
11271127

1128-
## Stop an interactive session
1128+
## Session management
1129+
1130+
### Stop an interactive session
1131+
11291132
Instead of manually click stop button, sometimes it's more convenient to stop an interactive session by calling an API in the code. For such cases, we provide an API `mssparkutils.session.stop()` to support stopping the interactive session via code, it's available for Scala and Python.
11301133

11311134
:::zone pivot = "programming-language-python"
@@ -1142,7 +1145,7 @@ mssparkutils.session.stop()
11421145
```
11431146
::: zone-end
11441147

1145-
`mssparkutils.session.stop()` will stop the current interactive session asynchrously in the background, it stops the Spark session and release resources occupied by the session so they are available to other sessions in the same pool.
1148+
`mssparkutils.session.stop()` API will stop the current interactive session asynchrously in the background, it stops the Spark session and release resources occupied by the session so they are available to other sessions in the same pool.
11461149

11471150
> [!NOTE]
11481151
> We don't recommend call language built-in APIs like `sys.exit` in Scala or `sys.exit()` in Python in your code, because such APIs just

0 commit comments

Comments
 (0)