HyukjinKwon commented on code in PR #54106:
URL: https://github.com/apache/spark/pull/54106#discussion_r2801674667
##########
python/pyspark/sql/connect/client/core.py:
##########
@@ -755,8 +755,11 @@ def __init__(
self._release_futures: weakref.WeakSet[concurrent.futures.Future] =
weakref.WeakSet()
- # cleanup ml cache if possible
- atexit.register(self._cleanup_ml_cache)
+ self._release_session_on_exit = os.getenv(
+ "SPARK_CONNECT_RELEASE_SESSION_ON_EXIT", "false"
Review Comment:
I am fine with this but I wonder if we should at least document this
`SPARK_CONNECT_RELEASE_SESSION_ON_EXIT` somewhere.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]