HyukjinKwon commented on code in PR #54106:
URL: https://github.com/apache/spark/pull/54106#discussion_r2825020834


##########
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:
   ah ok. I see there are already some instances undocumented. Let's probably 
document them in a separate PR .. I am fine with this PR as is



-- 
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]

Reply via email to